summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-12-04 18:48:01 +0000
committerChris Lattner <sabre@nondot.org>2005-12-04 18:48:01 +0000
commitfd857daa0de2f0150524655f10888a73b30752cd (patch)
tree500247f414d4bd62bd47129a0d457a43bb938b38 /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
parentd9d18aff6a3ab86bafa25919d3a3e74091aabd5d (diff)
downloadbcm5719-llvm-fd857daa0de2f0150524655f10888a73b30752cd.tar.gz
bcm5719-llvm-fd857daa0de2f0150524655f10888a73b30752cd.zip
Finish moving uncond br over to .td file, remove from .cpp file.
llvm-svn: 24590
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index 252de5ee51c..9ed7de49809 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@ -873,6 +873,7 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) {
switch (N->getOpcode()) {
default: break;
+ case ISD::BasicBlock: return CodeGenMap[Op] = Op;
case ISD::DYNAMIC_STACKALLOC: return SelectDYNAMIC_STACKALLOC(Op);
case ISD::ADD_PARTS: return SelectADD_PARTS(Op);
case ISD::SUB_PARTS: return SelectSUB_PARTS(Op);
@@ -1219,9 +1220,6 @@ SDOperand PPCDAGToDAGISel::Select(SDOperand Op) {
// Finally, select this to a blr (return) instruction.
return CurDAG->SelectNodeTo(N, PPC::BLR, MVT::Other, Chain);
}
- case ISD::BR:
- return CurDAG->SelectNodeTo(N, PPC::B, MVT::Other, N->getOperand(1),
- Select(N->getOperand(0)));
case ISD::BR_CC:
case ISD::BRTWOWAY_CC: {
SDOperand Chain = Select(N->getOperand(0));
OpenPOWER on IntegriCloud