Skip to content

Commit 36f4de8

Browse files
committed
[VectorCombine] Update comments. NFC.
1 parent 35e56ab commit 36f4de8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Transforms/Vectorize/VectorCombine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4260,6 +4260,10 @@ bool VectorCombine::run() {
42604260
if (!DT.isReachableFromEntry(&BB))
42614261
continue;
42624262
// 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.
42634267
Instruction *I = &BB.front();
42644268
while (I) {
42654269
NextInst = I->getNextNode();

0 commit comments

Comments
 (0)