diff options
author | Tim Northover <tnorthover@apple.com> | 2015-05-13 20:28:38 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-05-13 20:28:38 +0000 |
commit | 4998a47f732c7f169ca09a3615583a18db250f5d (patch) | |
tree | 664da1f7268f8b106ec1cbcb4682d31d9a4bc489 /llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | |
parent | 688f7bb21a686fc296c8e1c313f9a1054a4baaf9 (diff) | |
download | bcm5719-llvm-4998a47f732c7f169ca09a3615583a18db250f5d.tar.gz bcm5719-llvm-4998a47f732c7f169ca09a3615583a18db250f5d.zip |
ARM: remove custom jump table UID
We were creating and propagating two separate indices for each jump table (from
back in the mists of time). However, the generic index used by other backends
is sufficient to emit a unique symbol so this was unneeded.
llvm-svn: 237294
Diffstat (limited to 'llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp index 9ce42470452..512734151ba 100644 --- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp @@ -655,7 +655,7 @@ unsigned ARMBaseInstrInfo::GetInstSizeInBytes(const MachineInstr *MI) const { ? 1 : ((Opc == ARM::t2TBH_JT) ? 2 : 4); unsigned NumOps = MCID.getNumOperands(); MachineOperand JTOP = - MI->getOperand(NumOps - (MI->isPredicable() ? 3 : 2)); + MI->getOperand(NumOps - (MI->isPredicable() ? 2 : 1)); unsigned JTI = JTOP.getIndex(); const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo(); assert(MJTI != nullptr); |