mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 02:22:29 +00:00
fix PHI node emission for basic blocks that have select_cc's in them on ppc32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23113 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,8 +52,9 @@ namespace {
|
|||||||
assert(&MRI && "Target doesn't provide register info?");
|
assert(&MRI && "Target doesn't provide register info?");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Run() {
|
MachineBasicBlock *Run() {
|
||||||
Emit(DAG.getRoot());
|
Emit(DAG.getRoot());
|
||||||
|
return BB;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -229,5 +230,5 @@ unsigned SimpleSched::Emit(SDOperand Op) {
|
|||||||
/// graph.
|
/// graph.
|
||||||
void SelectionDAGISel::ScheduleAndEmitDAG(SelectionDAG &SD) {
|
void SelectionDAGISel::ScheduleAndEmitDAG(SelectionDAG &SD) {
|
||||||
if (ViewDAGs) SD.viewGraph();
|
if (ViewDAGs) SD.viewGraph();
|
||||||
SimpleSched(SD, BB).Run();
|
BB = SimpleSched(SD, BB).Run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user