[DAGCombine] Add calls to SimplifyDemandedVectorElts from visitINSERT_SUBVECTOR ...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 20 Nov 2018 15:23:50 +0000 (15:23 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 20 Nov 2018 15:23:50 +0000 (15:23 +0000)
commit37351059618bf1a911d9d555273bcf7be0f570b7
tree253d3721953ff5df97f044593ed1e43249834616
parent6201557b184c0c448e395cad186cc28335950b7c
[DAGCombine] Add calls to SimplifyDemandedVectorElts from visitINSERT_SUBVECTOR (PR37989)

This uncovered an off-by-one typo in SimplifyDemandedVectorElts's INSERT_SUBVECTOR handling as its bounds check was bailing on safe indices.

llvm-svn: 347313
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/X86/split-extend-vector-inreg.ll
llvm/test/CodeGen/X86/var-permute-256.ll
llvm/test/CodeGen/X86/x86-interleaved-access.ll