diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-05-20 18:34:01 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-05-20 18:34:01 +0000 |
commit | 76526f88632325fab1c33d9c1a8248087eb5e548 (patch) | |
tree | b94a92123bbf6a9bb1f4725a002da3e3235e3b50 /lib/CodeGen | |
parent | 53e184980dd9ebd6f35a5a0b1f067271843b62b7 (diff) |
Remove dbg_value workaround and associated command line option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/PostRASchedulerList.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp index 0a7eefa47f..12bc645a6f 100644 --- a/lib/CodeGen/PostRASchedulerList.cpp +++ b/lib/CodeGen/PostRASchedulerList.cpp @@ -80,12 +80,6 @@ DebugMod("postra-sched-debugmod", cl::desc("Debug control MBBs that are scheduled"), cl::init(0), cl::Hidden); -static cl::opt<bool> -EnablePostRADbgValue("post-RA-dbg-value", - cl::desc("Enable processing of dbg_value in post-RA"), - cl::init(true), cl::Hidden); - - AntiDepBreaker::~AntiDepBreaker() { } namespace { @@ -272,20 +266,6 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) { // Initialize register live-range state for scheduling in this block. Scheduler.StartBlock(MBB); - // FIXME: Temporary workaround for <rdar://problem/7759363>: The post-RA - // scheduler has some sort of problem with DebugValue instructions that - // causes an assertion in LeaksContext.h to fail occasionally. Just - // remove all those instructions for now. - if (!EnablePostRADbgValue) { - DEBUG(dbgs() << "*** Maintaining DbgValues in PostRAScheduler\n"); - for (MachineBasicBlock::iterator I = MBB->begin(), E = MBB->end(); - I != E; ) { - MachineInstr *MI = &*I++; - if (MI->isDebugValue()) - MI->eraseFromParent(); - } - } - // Schedule each sequence of instructions not interrupted by a label // or anything else that effectively needs to shut down scheduling. MachineBasicBlock::iterator Current = MBB->end(); |