[PATCH] D57445: [ARM] Fix TTI IntImmCost

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 30 04:27:30 PST 2019


samparker created this revision.
samparker added reviewers: t.p.northover, dexonsmith, dmgreen, SjoerdMeijer, efriedma.
Herald added subscribers: kristof.beyls, javed.absar.

The cost of immediates returned from the backend was generally wrong, returning 1 for most immediates that could be directly encoded within an instruction. We now return 0 for these. The valuesreturned are now also more accurate, taking into consideration the exotic encoding patterns of Thumb2 immediates and calculating how many mov instructions would be needed to rematerialise a value.


https://reviews.llvm.org/D57445

Files:
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  test/CodeGen/ARM/select_const.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57445.184273.patch
Type: text/x-patch
Size: 24669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190130/9160bff8/attachment.bin>


More information about the llvm-commits mailing list