Skip to content

Commit e96111d

Browse files
authored
[LV] Remove redundant check. nfc (#135605)
Remove the redundant `!TheLoop->contains(Op->getParent())` check since `!TheLoop->contains(Op)` has already been verified.
1 parent cc354d6 commit e96111d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7212,9 +7212,6 @@ void LoopVectorizationCostModel::collectValuesToIgnore() {
72127212
}))
72137213
continue;
72147214

7215-
if (!TheLoop->contains(Op->getParent()))
7216-
continue;
7217-
72187215
// If all of Op's users are in ValuesToIgnore, add it to ValuesToIgnore
72197216
// which applies for both scalar and vector versions. Otherwise it is only
72207217
// dead in vector versions, so only add it to VecValuesToIgnore.

0 commit comments

Comments
 (0)