aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-27 00:58:02 +0000
committerChris Lattner <sabre@nondot.org>2005-08-27 00:58:02 +0000
commit620c93cca1aeef8a53b00eee19e3f16926dcc1cf (patch)
tree8e8d2771f7de0468f546dca639e6a29455e18416
parente3f1c9773420bf6e51b39906609329d21cc9269c (diff)
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
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index dc3996bbfe..723daed42f 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -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();
}