[llvm] [SLP] Normalize debug messages for newTreeEntry. (PR #119514)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 04:14:43 PST 2024


================
@@ -3671,6 +3671,7 @@ class BoUpSLP {
 
     if (UserTreeIdx.UserTE)
       Last->UserTreeIndices.push_back(UserTreeIdx);
+    Last->dump();
----------------
alexey-bataev wrote:

No, it's a bad solution. 1. It first be emitted only in debug builds and only if -debug is provided. 2. Better to move it to each LLVM_DEBUG, where the messages for entries are printed

https://github.com/llvm/llvm-project/pull/119514


More information about the llvm-commits mailing list