diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-11-29 21:28:32 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-11-29 21:28:32 +0000 |
commit | 81af4f9eb153101ae9daea57afe881faf4f51b3b (patch) | |
tree | 2199aac7b59fe63f72f9a38fc7c28f7284027a4b /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | |
parent | 40a80ac963f93486468b0dd5d458c4f1ac88fcdf (diff) | |
download | bcm5719-llvm-81af4f9eb153101ae9daea57afe881faf4f51b3b.tar.gz bcm5719-llvm-81af4f9eb153101ae9daea57afe881faf4f51b3b.zip |
Rename t2 TBB and TBH instructions to reference that they encode the jump table
data. Next up, pseudo-izing them.
llvm-svn: 120320
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 6f01846ab5e..3c254085647 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -1766,7 +1766,7 @@ bool ARMConstantIslands::OptimizeThumb2JumpTables(MachineFunction &MF) { if (!OptOk) continue; - unsigned Opc = ByteOk ? ARM::t2TBB : ARM::t2TBH; + unsigned Opc = ByteOk ? ARM::t2TBB_JT : ARM::t2TBH_JT; MachineInstr *NewJTMI = BuildMI(MBB, MI->getDebugLoc(), TII->get(Opc)) .addReg(IdxReg, getKillRegState(IdxRegKill)) .addJumpTableIndex(JTI, JTOP.getTargetFlags()) |