mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Remove unused options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -53,14 +53,6 @@ namespace {
|
|||||||
cl::desc("Use new coalescer heuristic"),
|
cl::desc("Use new coalescer heuristic"),
|
||||||
cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
CommuteDef("coalescer-commute-instrs",
|
|
||||||
cl::init(true), cl::Hidden);
|
|
||||||
|
|
||||||
static cl::opt<int>
|
|
||||||
CommuteLimit("commute-limit",
|
|
||||||
cl::init(-1), cl::Hidden);
|
|
||||||
|
|
||||||
RegisterPass<SimpleRegisterCoalescing>
|
RegisterPass<SimpleRegisterCoalescing>
|
||||||
X("simple-register-coalescing", "Simple Register Coalescing");
|
X("simple-register-coalescing", "Simple Register Coalescing");
|
||||||
|
|
||||||
@ -247,8 +239,6 @@ bool SimpleRegisterCoalescing::HasOtherReachingDefs(LiveInterval &IntA,
|
|||||||
bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
|
bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
|
||||||
LiveInterval &IntB,
|
LiveInterval &IntB,
|
||||||
MachineInstr *CopyMI) {
|
MachineInstr *CopyMI) {
|
||||||
if (!CommuteDef) return false;
|
|
||||||
|
|
||||||
unsigned CopyIdx = li_->getDefIndex(li_->getInstructionIndex(CopyMI));
|
unsigned CopyIdx = li_->getDefIndex(li_->getInstructionIndex(CopyMI));
|
||||||
|
|
||||||
// FIXME: For now, only eliminate the copy by commuting its def when the
|
// FIXME: For now, only eliminate the copy by commuting its def when the
|
||||||
@ -293,9 +283,6 @@ bool SimpleRegisterCoalescing::RemoveCopyByCommutingDef(LiveInterval &IntA,
|
|||||||
if (HasOtherReachingDefs(IntA, IntB, AValNo, BValNo))
|
if (HasOtherReachingDefs(IntA, IntB, AValNo, BValNo))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (CommuteLimit >= 0 && numCommutes >= (unsigned)CommuteLimit)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// At this point we have decided that it is legal to do this
|
// At this point we have decided that it is legal to do this
|
||||||
// transformation. Start by commuting the instruction.
|
// transformation. Start by commuting the instruction.
|
||||||
MachineBasicBlock *MBB = DefMI->getParent();
|
MachineBasicBlock *MBB = DefMI->getParent();
|
||||||
|
Reference in New Issue
Block a user