summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-11-29 21:28:32 +0000
committerJim Grosbach <grosbach@apple.com>2010-11-29 21:28:32 +0000
commitd092a87ba3f905a6801a0bdf816267329cf0391c (patch)
tree9df8e6bb8207d45b73b59acaa5b345bd0c172491 /lib/Target/ARM/ARMConstantIslandPass.cpp
parentd2fe8e0acdd8076c5d6858a4c7e7b973c3feb420 (diff)
downloadllvm-d092a87ba3f905a6801a0bdf816267329cf0391c.tar.gz
llvm-d092a87ba3f905a6801a0bdf816267329cf0391c.tar.bz2
llvm-d092a87ba3f905a6801a0bdf816267329cf0391c.tar.xz
Rename t2 TBB and TBH instructions to reference that they encode the jump table
data. Next up, pseudo-izing them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index 6f01846ab5..3c25408564 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/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())