From 2dab05902112042eb4cc2cd16adfbe0a9127c0af Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 6 May 2021 16:07:16 +0100 Subject: [PATCH] [SLP] Constify the TreeEntry* input into dumpTreeCosts(). NFCI. --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index b538de6..ccc8d7c 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -1787,7 +1787,7 @@ private: }; #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(); -- 2.7.4