Skip to content

Commit 5bb2158

Browse files
committed
Remove the old option, we don't need that anymore, left it accidentally
there.
1 parent fe979ea commit 5bb2158

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ static cl::opt<unsigned int> MaxMemInstrCount(
6666
"in the dependency matrix. Higher value may lead to more interchanges "
6767
"at the cost of compile-time"));
6868

69-
static cl::opt<bool> ForceLoopInterchange(
70-
"loop-interchange-force", cl::init(false), cl::Hidden,
71-
cl::desc("Ignore the cost model, and force interchange if it is legal"));
72-
7369
namespace {
7470

7571
using LoopVector = SmallVector<Loop *, 8>;
@@ -607,8 +603,7 @@ struct LoopInterchange {
607603
}
608604
LLVM_DEBUG(dbgs() << "Loops are legal to interchange\n");
609605
LoopInterchangeProfitability LIP(OuterLoop, InnerLoop, SE, ORE);
610-
if (!ForceLoopInterchange &&
611-
!LIP.isProfitable(InnerLoop, OuterLoop, InnerLoopId, OuterLoopId,
606+
if (!LIP.isProfitable(InnerLoop, OuterLoop, InnerLoopId, OuterLoopId,
612607
DependencyMatrix, CCM)) {
613608
LLVM_DEBUG(dbgs() << "Interchanging loops not profitable.\n");
614609
return false;

0 commit comments

Comments
 (0)