llvm-project/llvm/test/Transforms/VectorCombine/X86
Sanjay Patel b57819e130 [VectorCombine] widen a load with subvector insert
This adapts/copies code from the existing fold that allows
widening of load scalar+insert. It can help in IR because
it removes a shuffle, and the backend can already narrow
loads if that is profitable in codegen.

We might be able to consolidate more of the logic, but
handling this basic pattern should be enough to make a small
difference on one of the motivating examples from issue #17113.
The final goal of combining loads on those patterns is not
solved though.

Differential Revision: https://reviews.llvm.org/D137341
2022-11-10 14:11:32 -05:00
..
extract-binop-inseltpoison.ll
extract-binop.ll
extract-cmp-binop.ll
extract-cmp.ll
extract-fneg-insert.ll [VectorCombine] fix crashing on match of non-canonical fneg 2022-10-17 10:47:48 -04:00
insert-binop-inseltpoison.ll
insert-binop-with-constant-inseltpoison.ll
insert-binop-with-constant.ll
insert-binop.ll
lit.local.cfg
load-inseltpoison.ll
load-widening.ll [VectorCombine] widen a load with subvector insert 2022-11-10 14:11:32 -05:00
load.ll
no-sse-inseltpoison.ll
no-sse.ll
scalarize-cmp-inseltpoison.ll
scalarize-cmp.ll
scalarize-vector-gep.ll
shuffle-inseltpoison.ll
shuffle.ll