mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 20:04:03 +00:00
Turn on GEP index sinking by default.
llvm-svn: 35127
This commit is contained in:
parent
449900b988
commit
77099bef05
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user