[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Aug 24 17:30:10 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PPC32ISelDAGToDAG.cpp updated: 1.25 -> 1.26
---
Log message:

implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c


---
Diffs of the changes:  (+4 -1)

 PPC32ISelDAGToDAG.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp
diff -u llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.25 llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.26
--- llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp:1.25	Wed Aug 24 19:19:12 2005
+++ llvm/lib/Target/PowerPC/PPC32ISelDAGToDAG.cpp	Wed Aug 24 19:29:58 2005
@@ -1062,7 +1062,10 @@
     CurDAG->SelectNodeTo(N, MVT::Other, PPC::BLR, Chain);
     break;
   }
-
+  case ISD::BR:
+    CurDAG->SelectNodeTo(N, MVT::Other, PPC::B, N->getOperand(1),
+                         Select(N->getOperand(0)));
+    break;
   case ISD::BR_CC:
   case ISD::BRTWOWAY_CC: {
     SDOperand Chain = Select(N->getOperand(0));






More information about the llvm-commits mailing list