[PATCH] D120216: [DAG] try to convert multiply to shift via demanded bits

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 20 18:11:09 PST 2022


spatel updated this revision to Diff 410201.
spatel added a comment.

Patch updated:
Ignore power-of-2 multiplies. That eliminates the add/sub diffs and other reg allocation diffs, so now we just show real improvements in the tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120216/new/

https://reviews.llvm.org/D120216

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/AArch64/mul_pow2.ll
  llvm/test/CodeGen/Mips/urem-seteq-illegal-types.ll
  llvm/test/CodeGen/PowerPC/srem-lkk.ll
  llvm/test/CodeGen/RISCV/mul.ll
  llvm/test/CodeGen/X86/mul-demand.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120216.410201.patch
Type: text/x-patch
Size: 9702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220221/1b183882/attachment.bin>


More information about the llvm-commits mailing list