fix PHI node emission for basic blocks that have select_cc's in them on ppc32

llvm-svn: 23113
This commit is contained in:
Chris Lattner 2005-08-27 00:58:02 +00:00
parent 787e962795
commit 5ee85e89b6
1 changed files with 3 additions and 2 deletions

View File

@ -52,8 +52,9 @@ namespace {
assert(&MRI && "Target doesn't provide register info?");
}
void Run() {
MachineBasicBlock *Run() {
Emit(DAG.getRoot());
return BB;
}
private:
@ -229,5 +230,5 @@ unsigned SimpleSched::Emit(SDOperand Op) {
/// graph.
void SelectionDAGISel::ScheduleAndEmitDAG(SelectionDAG &SD) {
if (ViewDAGs) SD.viewGraph();
SimpleSched(SD, BB).Run();
BB = SimpleSched(SD, BB).Run();
}