diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-24 16:41:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-24 16:41:36 +0000 |
commit | 0476b2852541575cc1628685cdb1d02d38ba6f87 (patch) | |
tree | 47041b8018ee5af8bbedf51cdf3d4daf62470e37 /lib/Target/Alpha/AlphaInstrInfo.cpp | |
parent | e87146ace88464be4ea4f8869830642c40178f1f (diff) | |
download | llvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.gz llvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.bz2 llvm-0476b2852541575cc1628685cdb1d02d38ba6f87.tar.xz |
implement uncond branch insertion so alpha works work branchfolding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaInstrInfo.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaInstrInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.cpp b/lib/Target/Alpha/AlphaInstrInfo.cpp index c30f38aee3..84f54803a6 100644 --- a/lib/Target/Alpha/AlphaInstrInfo.cpp +++ b/lib/Target/Alpha/AlphaInstrInfo.cpp @@ -83,3 +83,10 @@ AlphaInstrInfo::isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const { return 0; } +void AlphaInstrInfo::InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, + MachineBasicBlock *FBB, + const std::vector<MachineOperand> &Cond)const{ + // Can only insert uncond branches so far. + assert(Cond.empty() && !FBB && TBB && "Can only handle uncond branches!"); + BuildMI(&MBB, Alpha::BR, 1).addMBB(TBB); +}
\ No newline at end of file |