summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit5ee85e89b6fae9655bfd8dcbb1856e869e17cc73 (patch)
tree69827b063e8b0e51425e417df8f83b06eb66040c /llvm/lib
parent787e9627959d8346d8c1e2f0afda693a9f89d98f (diff)
downloadbcm5719-llvm-5ee85e89b6fae9655bfd8dcbb1856e869e17cc73.tar.gz
bcm5719-llvm-5ee85e89b6fae9655bfd8dcbb1856e869e17cc73.zip
fix PHI node emission for basic blocks that have select_cc's in them on ppc32
llvm-svn: 23113
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index dc3996bbfe1..723daed42f0 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud