mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Enhance EmitInstrWithCustomInserter() so target can specify CFG changes that sdisel will use to properly complete phi nodes.
Not functionality change yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82273 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -240,7 +240,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
||||
MachineInstr *MI = prior(I);
|
||||
if (isSchedulingBoundary(MI, Fn)) {
|
||||
Scheduler.Run(MBB, I, Current, CurrentCount);
|
||||
Scheduler.EmitSchedule();
|
||||
Scheduler.EmitSchedule(0);
|
||||
Current = MI;
|
||||
CurrentCount = Count - 1;
|
||||
Scheduler.Observe(MI, CurrentCount);
|
||||
@@ -252,7 +252,7 @@ bool PostRAScheduler::runOnMachineFunction(MachineFunction &Fn) {
|
||||
assert((MBB->begin() == Current || CurrentCount != 0) &&
|
||||
"Instruction count mismatch!");
|
||||
Scheduler.Run(MBB, MBB->begin(), Current, CurrentCount);
|
||||
Scheduler.EmitSchedule();
|
||||
Scheduler.EmitSchedule(0);
|
||||
|
||||
// Clean up register live-range state.
|
||||
Scheduler.FinishBlock();
|
||||
|
Reference in New Issue
Block a user