[llvm] [SLP]Fix graph traversal in getSpillCost (PR #124984)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 4 04:28:19 PST 2025
================
@@ -12252,25 +12254,28 @@ InstructionCost BoUpSLP::getSpillCost() const {
};
// Debug information does not impact spill cost.
- if (isa<CallBase>(&*PrevInstIt) && !NoCallIntrinsic(&*PrevInstIt) &&
- &*PrevInstIt != PrevInst)
+ // Vectorized calls, represented as vector intrinsics, do not impact spill
+ // cost.
+ if (const auto *CB = dyn_cast<CallBase>(&*PrevInstIt);
+ CB && !NoCallIntrinsic(CB) && !isVectorized(CB))
----------------
lukel97 wrote:
Oh woops I didn't see this. I'll close #125650
https://github.com/llvm/llvm-project/pull/124984
More information about the llvm-commits
mailing list