diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-16 18:32:30 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-16 18:32:30 +0000 |
commit | 9e2d86add8ae62026d2f07ea1b33d6e1ae418449 (patch) | |
tree | 554bbd4455472a2c2b5829377058e7b194f376aa | |
parent | 9f5ead9601e110b2e67123d73647cbd88308c379 (diff) |
Turn on GEP index sinking by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35127 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d810615f4c..5fc3be1fd4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -59,10 +59,6 @@ ViewSchedDAGs("view-sched-dags", cl::Hidden, static const bool ViewISelDAGs = 0, ViewSchedDAGs = 0; #endif -static cl::opt<bool> -EnableGEPIndexSink("enable-gep-index-sinking", cl::Hidden, - cl::desc("Sink invariant GEP index computation into use blocks")); - //===---------------------------------------------------------------------===// /// /// RegisterScheduler class - Track the registration of instruction schedulers. @@ -3981,9 +3977,6 @@ static bool isLoopInvariantInst(Instruction *I, Loop *L) { /// addressing mode of the load / store uses. static bool SinkInvariantGEPIndex(BinaryOperator *BinOp, LoopInfo *loopInfo, const TargetLowering &TLI) { - if (!EnableGEPIndexSink) - return false; - // Only look at Add / Sub for now. if (BinOp->getOpcode() != Instruction::Add && BinOp->getOpcode() != Instruction::Sub) |