]> granicus.if.org Git - llvm/commit
[DAGCombine] combineShuffleOfScalars - handle non-zero SCALAR_TO_VECTOR indices ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 16 Mar 2019 17:36:26 +0000 (17:36 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 16 Mar 2019 17:36:26 +0000 (17:36 +0000)
commit1dcbea8cd57df1d632b3ec73fc99880bdf5c2d05
tree1f0d0767278f3a6f9b91ae178f39ddf627171b04
parentac4082b77e075861f50471a891d937658137975d
[DAGCombine] combineShuffleOfScalars - handle non-zero SCALAR_TO_VECTOR indices (PR41097)

rL356292 reduces the size of scalar_to_vector if we know the upper bits are undef - which means that shuffles may find they are suddenly referencing scalar_to_vector elements other than zero - so make sure we handle this as undef.

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