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 35e56ab commit 36f4de8Copy full SHA for 36f4de8
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -4260,6 +4260,10 @@ bool VectorCombine::run() {
4260
if (!DT.isReachableFromEntry(&BB))
4261
continue;
4262
// Use early increment range so that we can erase instructions in loop.
4263
+ // make_early_inc_range is not applicable here, as the next iterator may
4264
+ // be invalidated by RecursivelyDeleteTriviallyDeadInstructions.
4265
+ // We manually maintain the next instruction and update it when it is about
4266
+ // to be deleted.
4267
Instruction *I = &BB.front();
4268
while (I) {
4269
NextInst = I->getNextNode();
0 commit comments