[PATCH] [DAGCombine] Don't generate atrocious shuffles for constant vectors

Michael Kuperstein michael.m.kuperstein at intel.com
Thu Jan 22 01:21:25 PST 2015


Updated getVectorShuffle()

Also fixed a potential bug with respect to bitcasts. I couldn't actually hit this for constants because bitcasts of constants get resolved earlier, but this is safer, and, in any case, is required if the constant constraint is removed.


http://reviews.llvm.org/D7093

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  test/CodeGen/X86/splat-const.ll
  test/CodeGen/X86/sse41.ll
  test/CodeGen/X86/widen_shuffle-1.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7093.18594.patch
Type: text/x-patch
Size: 6329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150122/3274199e/attachment.bin>


More information about the llvm-commits mailing list