File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/lib/Transforms/Vectorize/SandboxVectorizer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -368,10 +368,11 @@ void DependencyGraph::notifyCreateInstr(Instruction *I) {
368
368
}
369
369
370
370
void DependencyGraph::notifyMoveInstr (Instruction *I, const BBIterator &To) {
371
- // Early return if `I` doesn't actually move .
371
+ // NOTE: This function runs before `I` moves to its new destination .
372
372
BasicBlock *BB = To.getNodeParent ();
373
- if (To != BB->end () && &*To == I->getNextNode ())
374
- return ;
373
+ assert (!(To != BB->end () && &*To == I->getNextNode ()) &&
374
+ !(To == BB->end () && std::next (I->getIterator ()) == BB->end ()) &&
375
+ " Should not have been called if destination is same as origin." );
375
376
376
377
// Maintain the DAGInterval.
377
378
DAGInterval.notifyMoveInstr (I, To);
You can’t perform that action at this time.
0 commit comments