[PATCH] D104877: [ARM] Set the immediate cost of GEP operands to 0
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 24 15:12:28 PDT 2021
dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, NickGuy, ostannard, simon_tatham.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.
This prevents constant gep operands from being hoisted by the Constant Hoisting pass, leaving them to CodegenPrepare which can usually do a better job at splitting large offsets. This can, in general, improve performance and decrease codesize, especially for v6m where many constants have a high cost.
https://reviews.llvm.org/D104877
Files:
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/CodeGen/ARM/gep-imm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104877.354363.patch
Type: text/x-patch
Size: 4310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210624/361d9b3f/attachment.bin>
More information about the llvm-commits
mailing list