[llvm] [SLP] Fix cost estimation of external uses with wrong VF (PR #148185)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 15 04:06:54 PDT 2025
================
@@ -14632,6 +14630,11 @@ InstructionCost BoUpSLP::getTreeCost(ArrayRef<Value *> VectorizedVals,
}
SmallDenseSet<std::pair<Value *, Value *>, 8> CheckedScalarUser;
for (ExternalUser &EU : ExternalUses) {
+ LLVM_DEBUG(dbgs() << "SLP: Computing cost for external use of TreeEntry "
+ << EU.E.Idx << " in lane " << EU.Lane << "\n");
+ LLVM_DEBUG(dbgs() << " User:" << *EU.User << "\n");
----------------
alexey-bataev wrote:
There are no tests for debug messages (do not mess with remarks, they are tested), we never actually tested it
https://github.com/llvm/llvm-project/pull/148185
More information about the llvm-commits
mailing list