diff options
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430InstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430InstrInfo.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp b/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp index 130211878be1..e9e26e295fd5 100644 --- a/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp +++ b/llvm/lib/Target/MSP430/MSP430InstrInfo.cpp @@ -18,8 +18,8 @@ #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/MachineRegisterInfo.h" #include "llvm/IR/Function.h" +#include "llvm/MC/TargetRegistry.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/TargetRegistry.h" using namespace llvm; @@ -116,6 +116,7 @@ unsigned MSP430InstrInfo::removeBranch(MachineBasicBlock &MBB, continue; if (I->getOpcode() != MSP430::JMP && I->getOpcode() != MSP430::JCC && + I->getOpcode() != MSP430::Bi && I->getOpcode() != MSP430::Br && I->getOpcode() != MSP430::Bm) break; @@ -189,7 +190,7 @@ bool MSP430InstrInfo::analyzeBranch(MachineBasicBlock &MBB, return true; // Handle unconditional branches. - if (I->getOpcode() == MSP430::JMP) { + if (I->getOpcode() == MSP430::JMP || I->getOpcode() == MSP430::Bi) { if (!AllowModify) { TBB = I->getOperand(0).getMBB(); continue; |
