aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-21 05:42:09 +0000
committerChris Lattner <sabre@nondot.org>2006-10-21 05:42:09 +0000
commit879d09cf130f3760a08865913c04d9ff328fad5f (patch)
tree21e531e42496e81ae816b8bbcc689d61068094b4 /lib/Target/PowerPC/PPCInstrInfo.cpp
parent54108068b71a7dbc48f4ebf1b2d7d87ca541070a (diff)
Simplify code, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp
index 941229dc38..76cb7ed569 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -253,12 +253,10 @@ void PPCInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
return;
}
- // Conditional branch
+ // Two-way Conditional Branch.
BuildMI(&MBB, PPC::COND_BRANCH, 3)
.addReg(Cond[0].getReg()).addImm(Cond[1].getImm()).addMBB(TBB);
-
- if (FBB) // Two-way branch.
- BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
+ BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
}
bool PPCInstrInfo::