[PATCH] D56987: [Intrinsic] Expand vector SMULFIX to MUL on zero scale

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 20 15:31:50 PST 2019


leonardchan created this revision.
leonardchan added reviewers: ebevhan, bjope, RKSimon, craig.topper.
Herald added a subscriber: hiraditya.

For zero scale SMULFIX, expand into MUL which produces better code for X86.


Repository:
  rL LLVM

https://reviews.llvm.org/D56987

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/X86/smul_fix.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56987.182719.patch
Type: text/x-patch
Size: 4711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190120/5865916c/attachment.bin>


More information about the llvm-commits mailing list