[llvm] 2dab059 - [SLP] Constify the TreeEntry* input into dumpTreeCosts(). NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 08:20:30 PDT 2021
Author: Simon Pilgrim
Date: 2021-05-06T16:20:19+01:00
New Revision: 2dab05902112042eb4cc2cd16adfbe0a9127c0af
URL: https://github.com/llvm/llvm-project/commit/2dab05902112042eb4cc2cd16adfbe0a9127c0af
DIFF: https://github.com/llvm/llvm-project/commit/2dab05902112042eb4cc2cd16adfbe0a9127c0af.diff
LOG: [SLP] Constify the TreeEntry* input into dumpTreeCosts(). NFCI.
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 b538de636524..ccc8d7c8619b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1787,7 +1787,7 @@ class BoUpSLP {
};
#ifndef NDEBUG
- void dumpTreeCosts(TreeEntry *E, InstructionCost ReuseShuffleCost,
+ void dumpTreeCosts(const TreeEntry *E, InstructionCost ReuseShuffleCost,
InstructionCost VecCost,
InstructionCost ScalarCost) const {
dbgs() << "SLP: Calculated costs for Tree:\n"; E->dump();
More information about the llvm-commits
mailing list