OSDN Git Service

Revert "[DAGCombine] A shuffle of a splat is always the splat itself"
authorZvi Rackover <zvi.rackover@intel.com>
Mon, 3 Apr 2017 17:41:19 +0000 (17:41 +0000)
committerZvi Rackover <zvi.rackover@intel.com>
Mon, 3 Apr 2017 17:41:19 +0000 (17:41 +0000)
commitf60f35be0ac171d455d073f98cbb97839c4d3409
tree1f954740ad4d2b25dded16f88d8ecfe5c001c39f
parentab1bde3393bc479b15d588e06b203ededb5ad4de
Revert "[DAGCombine]  A shuffle of a splat is always the splat itself"

This reverts commit r299047 which is incorrect because the
simplification may result in incorrect propogation of undefs to users of
the folded shuffle.

Thanks to Andrea Di Biagio for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/shuffle-of-splat-multiuses.ll