[PATCH] D48485: [InstCombine] allow shl+mul combos with shuffle (select) fold (PR37806)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 22 07:18:49 PDT 2018


spatel updated this revision to Diff 152473.
spatel added a comment.
This revision is now accepted and ready to land.

Patch updated:
In the last rev, I forgot to remove the use of the original opcode when we create the new binop. 
So we could have shifts when we should have multiplies (and the tests showed that).


https://reviews.llvm.org/D48485

Files:
  lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  test/Transforms/InstCombine/shuffle_select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48485.152473.patch
Type: text/x-patch
Size: 4919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180622/696f4613/attachment.bin>


More information about the llvm-commits mailing list