Skip to content

Commit c58a2e6

Browse files
committed
!fixup extend comment
1 parent c214984 commit c58a2e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5270,7 +5270,8 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
52705270
for (Instruction *ToRemove : List)
52715271
OpenIntervals.erase(ToRemove);
52725272

5273-
// Ignore instructions that are never used within the loop.
5273+
// Ignore instructions that are never used within the loop and do not have
5274+
// side-effects.
52745275
if (!Ends.count(I) && !I->mayHaveSideEffects())
52755276
continue;
52765277

0 commit comments

Comments
 (0)