We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c214984 commit c58a2e6Copy full SHA for c58a2e6
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -5270,7 +5270,8 @@ LoopVectorizationCostModel::calculateRegisterUsage(ArrayRef<ElementCount> VFs) {
5270
for (Instruction *ToRemove : List)
5271
OpenIntervals.erase(ToRemove);
5272
5273
- // Ignore instructions that are never used within the loop.
+ // Ignore instructions that are never used within the loop and do not have
5274
+ // side-effects.
5275
if (!Ends.count(I) && !I->mayHaveSideEffects())
5276
continue;
5277
0 commit comments