llvm-project/llvm/test/CodeGen/X86/avx512-shuffles
Simon Pilgrim 4aaf301fb8 [DAG] Fold vector (aext (load x)) -> (zext (truncate (zextload x)))
We currently don't do anything to fold any_extend vector loads as no target has such an instruction.

Instead I've added support for folding to a zextload, SimplifyDemandedBits does a good job of adjusting the zext(truncate(()) stages as required later on.

We still need the custom scalar extload handling instead of using the tryToFoldExtOfLoad helper as it has different legality tests - we can probably tweak that to reduce most of the code duplication.

Fixes the regression I mentioned in rG99a971cadff7

Differential Revision: https://reviews.llvm.org/D85129
2020-08-05 11:22:23 +01:00
..
broadcast-scalar-fp.ll
broadcast-scalar-int.ll
broadcast-vector-fp.ll
broadcast-vector-int.ll
duplicate-high.ll
duplicate-low.ll
in_lane_permute.ll
partial_permute.ll [DAG] Fold vector (aext (load x)) -> (zext (truncate (zextload x))) 2020-08-05 11:22:23 +01:00
permute.ll
shuffle-interleave.ll
shuffle-vec.ll
shuffle.ll
unpack.ll