mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Remove dbg_value workaround and associated command line option
llvm-svn: 104254
This commit is contained in:
parent
7dcd59b8b2
commit
5029c599b3
@ -80,12 +80,6 @@ DebugMod("postra-sched-debugmod",
|
|||||||
cl::desc("Debug control MBBs that are scheduled"),
|
cl::desc("Debug control MBBs that are scheduled"),
|
||||||
cl::init(0), cl::Hidden);
|
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() { }
|
AntiDepBreaker::~AntiDepBreaker() { }
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -272,20 +266,6 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
// Initialize register live-range state for scheduling in this block.
|
// Initialize register live-range state for scheduling in this block.
|
||||||
Scheduler.StartBlock(MBB);
|
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
|
// Schedule each sequence of instructions not interrupted by a label
|
||||||
// or anything else that effectively needs to shut down scheduling.
|
// or anything else that effectively needs to shut down scheduling.
|
||||||
MachineBasicBlock::iterator Current = MBB->end();
|
MachineBasicBlock::iterator Current = MBB->end();
|
||||||
|
Loading…
Reference in New Issue
Block a user