[PATCH] D109124: [ARM] Implement target hook function to decide folding (mul (add x, c1), c2)

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 1 19:31:25 PDT 2021


benshi001 created this revision.
benshi001 added reviewers: dmgreen, t.p.northover, RKSimon, efriedma.
Herald added subscribers: steven.zhang, kristof.beyls.
benshi001 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Prevent the folding in DAGCombine if it leads to worse code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109124

Files:
  llvm/test/CodeGen/ARM/addimm-mulimm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109124.370141.patch
Type: text/x-patch
Size: 5151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210902/023a9952/attachment.bin>


More information about the llvm-commits mailing list