aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.cpp6
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp6
2 files changed, 4 insertions, 8 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::
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index 0cc4c39cfb..29cda248ac 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -389,12 +389,10 @@ void X86InstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
return;
}
- // Conditional branch.
+ // Two-way Conditional branch.
unsigned Opc = GetCondBranchFromCond((X86::CondCode)Cond[0].getImm());
BuildMI(&MBB, Opc, 1).addMBB(TBB);
-
- if (FBB) // Two-way branch.
- BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
+ BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
}
bool X86InstrInfo::