llvm-project/llvm/test/Transforms/InstCombine/X86
Sanjay Patel e6b48a1b02 [InstCombine] improve demanded vector elements analysis of insertelement
Recurse instead of returning on the first found optimization. Also, return early in the caller
instead of continuing because that allows another round of simplification before we might
potentially lose undef information from a shuffle mask by eliminating the shuffle.

As noted in the review, we could probably do better and be more efficient by moving all of
demanded elements into a separate pass, but this is yet another quick fix to instcombine.

Differential Revision: https://reviews.llvm.org/D37236

llvm-svn: 312248
2017-08-31 15:57:17 +00:00
..
X86FsubCmpCombine.ll
blend_x86.ll
lit.local.cfg
pr2645-1.ll
shufflemask-undef.ll
x86-avx2.ll
x86-avx512.ll
x86-bmi-tbm.ll [X86][InstCombine] Add some simplifications for BZHI intrinsics 2017-07-31 18:52:15 +00:00
x86-crc32-demanded.ll
x86-f16c.ll
x86-fma.ll
x86-insertps.ll
x86-masked-memops.ll
x86-movmsk.ll
x86-muldq.ll
x86-pack.ll
x86-pshufb.ll [InstCombine] improve demanded vector elements analysis of insertelement 2017-08-31 15:57:17 +00:00
x86-sse.ll
x86-sse2.ll
x86-sse4a.ll
x86-sse41.ll
x86-vec_demanded_elts.ll
x86-vector-shifts.ll
x86-vperm2.ll
x86-vpermil.ll
x86-xop.ll