[llvm] c7e6ca7 - [SLP][NFC]Add dump() method for ScheduleData struct type for better debugging

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 09:50:30 PST 2025


Author: Alexey Bataev
Date: 2025-01-23T09:49:37-08:00
New Revision: c7e6ca76cb4be7b1707cb583cf4aa4d458b312aa

URL: https://github.com/llvm/llvm-project/commit/c7e6ca76cb4be7b1707cb583cf4aa4d458b312aa
DIFF: https://github.com/llvm/llvm-project/commit/c7e6ca76cb4be7b1707cb583cf4aa4d458b312aa.diff

LOG: [SLP][NFC]Add dump() method for ScheduleData struct type for better debugging

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 4de632d4ef149d..c98d872fb6467f 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -3986,6 +3986,8 @@ class BoUpSLP {
       }
     }
 
+    LLVM_DUMP_METHOD void dump() const { dump(dbgs()); }
+
     Instruction *Inst = nullptr;
 
     /// The TreeEntry that this instruction corresponds to.


        


More information about the llvm-commits mailing list