diff options
author | Diana Picus <diana.picus@linaro.org> | 2019-02-05 10:21:37 +0000 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2019-02-05 10:21:37 +0000 |
commit | e24b104a112bfa6f36d93d32a5640639c32d2d4b (patch) | |
tree | fd633df47e5e80cbd3302ccb849e5fcffab5dfc9 /llvm/lib/Target/ARM/ARMInstructionSelector.cpp | |
parent | dccfaff304f014006a1649e71f682ab4d08bf0ae (diff) | |
download | bcm5719-llvm-e24b104a112bfa6f36d93d32a5640639c32d2d4b.tar.gz bcm5719-llvm-e24b104a112bfa6f36d93d32a5640639c32d2d4b.zip |
[ARM GlobalISel] Support G_GEP for Thumb2
Same as ARM, but use a different opcode in the instruction selection.
llvm-svn: 353151
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstructionSelector.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstructionSelector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstructionSelector.cpp b/llvm/lib/Target/ARM/ARMInstructionSelector.cpp index e5c0a07ab95..2d80a193b03 100644 --- a/llvm/lib/Target/ARM/ARMInstructionSelector.cpp +++ b/llvm/lib/Target/ARM/ARMInstructionSelector.cpp @@ -930,7 +930,7 @@ bool ARMInstructionSelector::select(MachineInstr &I, return selectShift(ARM_AM::ShiftOpc::lsl, MIB); } case G_GEP: - I.setDesc(TII.get(ARM::ADDrr)); + I.setDesc(TII.get(STI.isThumb2() ? ARM::t2ADDrr : ARM::ADDrr)); MIB.add(predOps(ARMCC::AL)).add(condCodeOp()); break; case G_FRAME_INDEX: |