mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-24 06:27:56 +00:00
Fix some -march=thumb regressions. tBR_JTr is not predicable.
llvm-svn: 37272
This commit is contained in:
parent
f01566b705
commit
f448047ec2
@ -498,7 +498,9 @@ unsigned ARM::GetInstSize(MachineInstr *MI) {
|
||||
// These are jumptable branches, i.e. a branch followed by an inlined
|
||||
// jumptable. The size is 4 + 4 * number of entries.
|
||||
unsigned NumOps = TID->numOperands;
|
||||
unsigned JTI = MI->getOperand(NumOps-3).getJumpTableIndex();
|
||||
MachineOperand JTOP =
|
||||
MI->getOperand(NumOps - ((TID->Flags & M_PREDICABLE) ? 3 : 2));
|
||||
unsigned JTI = JTOP.getJumpTableIndex();
|
||||
MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
|
||||
const std::vector<MachineJumpTableEntry> &JT = MJTI->getJumpTables();
|
||||
assert(JTI < JT.size());
|
||||
|
Loading…
x
Reference in New Issue
Block a user