Skip to content

Commit 30807f0

Browse files
committed
Address comments
1 parent b4adfa7 commit 30807f0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static cl::opt<bool> RunNewGVN("enable-newgvn", cl::init(false), cl::Hidden,
201201
cl::desc("Run the NewGVN pass"));
202202

203203
static cl::opt<bool> EnableLoopInterchange(
204-
"enable-loopinterchange", cl::init(false), cl::Hidden,
204+
"enable-loopinterchange", cl::init(true), cl::Hidden,
205205
cl::desc("Enable the experimental LoopInterchange Pass"));
206206

207207
static cl::opt<bool> EnableUnrollAndJam("enable-unroll-and-jam",

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,14 @@ using CharMatrix = std::vector<std::vector<char>>;
7575
} // end anonymous namespace
7676

7777
// Minimum loop depth supported.
78-
static const unsigned MinLoopNestDepth = 2;
78+
static cl::opt<unsigned int> MinLoopNestDepth(
79+
"loop-interchange-min-loop-nest-depth", cl::init(2), cl::Hidden,
80+
cl::desc("Minimum depth of loop nest considered for the transform"));
7981

8082
// Maximum loop depth supported.
81-
static const unsigned MaxLoopNestDepth = 10;
83+
static cl::opt<unsigned int> MaxLoopNestDepth(
84+
"loop-interchange-max-loop-nest-depth", cl::init(10), cl::Hidden,
85+
cl::desc("Maximum depth of loop nest considered for the transform"));
8286

8387
#ifndef NDEBUG
8488
static void printDepMatrix(CharMatrix &DepMatrix) {

0 commit comments

Comments
 (0)