[llvm] 07ba457 - [SLP][NFC]Add dump of combined entries, where applicable
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 08:06:00 PST 2024
Author: Alexey Bataev
Date: 2024-12-27T07:56:10-08:00
New Revision: 07ba4575250b692b28d0fd5105e028b9f4c8e07f
URL: https://github.com/llvm/llvm-project/commit/07ba4575250b692b28d0fd5105e028b9f4c8e07f
DIFF: https://github.com/llvm/llvm-project/commit/07ba4575250b692b28d0fd5105e028b9f4c8e07f.diff
LOG: [SLP][NFC]Add dump of combined entries, where applicable
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 e9fc89fa242a7a..7f4c3d44b0ec4f 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -3311,7 +3311,7 @@ class BoUpSLP {
/// For gather/buildvector/alt opcode (TODO) nodes, which are combined from
/// other nodes as a series of insertvector instructions.
- SmallVector<std::pair<unsigned, unsigned>, 0> CombinedEntriesWithIndices;
+ SmallVector<std::pair<unsigned, unsigned>, 2> CombinedEntriesWithIndices;
private:
/// The operands of each instruction in each lane Operands[op_index][lane].
@@ -3545,6 +3545,13 @@ class BoUpSLP {
for (const auto &EInfo : UserTreeIndices)
dbgs() << EInfo << ", ";
dbgs() << "\n";
+ if (!CombinedEntriesWithIndices.empty()) {
+ dbgs() << "Combined entries: ";
+ interleaveComma(CombinedEntriesWithIndices, dbgs(), [&](const auto &P) {
+ dbgs() << "Entry index " << P.first << " with offset " << P.second;
+ });
+ dbgs() << "\n";
+ }
}
#endif
};
More information about the llvm-commits
mailing list