Skip to content

Commit fb40c2f

Browse files
committed
Skip uncodintional first Last inst registering
Created using spr 1.3.5
1 parent 1819117 commit fb40c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12502,7 +12502,7 @@ InstructionCost BoUpSLP::getSpillCost() {
1250212502
return It->second.getInt() != 0;
1250312503
PrevInstIt = Checked->getIterator().getReverse();
1250412504
}
12505-
SmallVector<const Instruction *> LastInstsInRange(1, Last);
12505+
SmallVector<const Instruction *> LastInstsInRange;
1250612506
while (InstIt != PrevInstIt && Budget <= BudgetLimit) {
1250712507
// Debug information does not impact spill cost.
1250812508
// Vectorized calls, represented as vector intrinsics, do not impact spill

0 commit comments

Comments
 (0)