[PATCH] [X86] Reduce some 32-bit imuls into lea + shift

Michael Kuperstein michael.m.kuperstein at intel.com
Tue Jan 27 05:14:02 PST 2015


Hi delena, nadav,

The existing code only performs the transformation for imulq on 64-bit platforms. It makes as much sense to make it for imull, on both 32-bit and 64-bit.
It looks like there's some additional clean-up needed, as well as additional patterns, but that'll go into a separate review.

Also extended the test to cover more cases.

http://reviews.llvm.org/D7196

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/imul.ll
  test/CodeGen/X86/imul64-lea.ll
  test/Transforms/LoopStrengthReduce/X86/ivchain-X86.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7196.18811.patch
Type: text/x-patch
Size: 5119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150127/4cc2f4a2/attachment.bin>


More information about the llvm-commits mailing list