Skip to content

Commit 4f56d47

Browse files
committed
[VPlan] Make ExpandedSCEVs argument const (NFC).
The argument is only used in const contexts. Simplifies a follow-up diff.
1 parent 0c8e5be commit 4f56d47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class LoopVectorizationPlanner {
354354
executePlan(ElementCount VF, unsigned UF, VPlan &BestPlan,
355355
InnerLoopVectorizer &LB, DominatorTree *DT,
356356
bool IsEpilogueVectorization,
357-
DenseMap<const SCEV *, Value *> *ExpandedSCEVs = nullptr);
357+
const DenseMap<const SCEV *, Value *> *ExpandedSCEVs = nullptr);
358358

359359
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
360360
void printPlans(raw_ostream &O);

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7644,7 +7644,7 @@ static void AddRuntimeUnrollDisableMetaData(Loop *L) {
76447644
SCEV2ValueTy LoopVectorizationPlanner::executePlan(
76457645
ElementCount BestVF, unsigned BestUF, VPlan &BestVPlan,
76467646
InnerLoopVectorizer &ILV, DominatorTree *DT, bool IsEpilogueVectorization,
7647-
DenseMap<const SCEV *, Value *> *ExpandedSCEVs) {
7647+
const DenseMap<const SCEV *, Value *> *ExpandedSCEVs) {
76487648
assert(BestVPlan.hasVF(BestVF) &&
76497649
"Trying to execute plan with unsupported VF");
76507650
assert(BestVPlan.hasUF(BestUF) &&

0 commit comments

Comments
 (0)