[PATCH] D39752: [ARM] Place jump table as the first operand in additions
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 11:14:59 PST 2017
chill created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.
When generating table jump code for switch statements, place the jump
table label as the first operand in the various addition instructions in
order to enable addressing mode selectors to better match index
computation and possibly fold them into the addressing mode of the table
entry load instruction.
Repository:
rL LLVM
https://reviews.llvm.org/D39752
Files:
lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/ARM/arm-position-independence-jump-table.ll
test/CodeGen/ARM/execute-only.ll
test/CodeGen/ARM/v6-jumptable-clobber.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39752.121940.patch
Type: text/x-patch
Size: 5886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/ebab7922/attachment.bin>
More information about the llvm-commits
mailing list