[llvm] [SLP] Retune look-ahead scores for constants (PR #207548)
Ryan Buchner via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 23:48:31 PDT 2026
================
@@ -2761,7 +2767,7 @@ class slpvectorizer::BoUpSLP {
// Consider constants and buildvector compatible.
if ((C1 && isa<InsertElementInst>(V2)) ||
(C2 && isa<InsertElementInst>(V1)))
- return LookAheadHeuristics::ScoreConstants;
+ return LookAheadHeuristics::ScoreSameOpcode;
----------------
bababuck wrote:
Thanks for the explanations, makes more sense to me now.
https://github.com/llvm/llvm-project/pull/207548
More information about the llvm-commits
mailing list