llvm-project/llvm/test/Transforms/InstCombine/X86
Philip Reames e6ad9ef4e7 [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement
The basic idea to this is that a) having a single canonical type makes CSE easier, and b) many of our transforms are inconsistent about which types we end up with based on visit order.

I'm restricting this to constants as for non-constants, we'd have to decide whether the simplicity was worth extra instructions. For constants, there are no extra instructions.

We chose the canonical type as i64 arbitrarily.  We might consider changing this to something else in the future if we have cause.

Differential Revision: https://reviews.llvm.org/D115387
2021-12-13 16:56:22 -08:00
..
2009-03-23-i80-fp80.ll
addcarry.ll
blend_x86.ll
clmulqdq.ll
lit.local.cfg
pr2645-1.ll
shufflemask-undef-inseltpoison.ll
shufflemask-undef.ll
simplify-libcalls-memcmp.ll
x86-addsub-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-addsub.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-amx-load-store.ll
x86-amx.ll
x86-avx2-inseltpoison.ll
x86-avx2.ll
x86-avx512-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-avx512.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-bmi-tbm.ll
x86-crc32-demanded.ll
x86-f16c-inseltpoison.ll [InstCombine] Update InstCombine to use poison instead of undef for shufflevector's placeholder (3/3) 2021-09-23 00:48:24 +09:00
x86-f16c.ll [InstCombine] Update InstCombine to use poison instead of undef for shufflevector's placeholder (3/3) 2021-09-23 00:48:24 +09:00
x86-fma.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-insertps.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-masked-memops.ll
x86-movmsk.ll
x86-muldq-inseltpoison.ll [InstCombine] don't automatically drop poison-generating flags in SimplifyVectorDemandedElts 2021-12-13 10:12:19 -05:00
x86-muldq.ll [InstCombine] don't automatically drop poison-generating flags in SimplifyVectorDemandedElts 2021-12-13 10:12:19 -05:00
x86-pack-inseltpoison.ll
x86-pack.ll
x86-pshufb-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-pshufb.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse2-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse2.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse4a-inseltpoison.ll
x86-sse4a.ll
x86-sse41-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-sse41.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vec_demanded_elts-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vec_demanded_elts.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vector-shifts-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vector-shifts.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vpermil-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-vpermil.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-xop-inseltpoison.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00
x86-xop.ll [instcombine] Canonicalize constant index type to i64 for extractelement/insertelement 2021-12-13 16:56:22 -08:00