llvm-project/llvm/test/Analysis/CostModel/ARM
David Green 255ad73424 [ARM] Make MVE v2i1 predicates legal
MVE can treat v16i1, v8i1, v4i1 and v2i1 as different views onto the
same 16bit VPR.P0 register, with v2i1 holding two 8 bit values for the
two halves. This was never treated as a legal type in llvm in the past
as there are not many 64bit instructions and no 64bit compares. There
are a few instructions that could use it though, notably a VSELECT (as
it can handle any size using the underlying v16i8 VPSEL), AND/OR/XOR for
similar reasons, some gathers/scatter and long multiplies and VCTP64
instructions.

This patch goes through and makes v2i1 a legal type, handling all the
cases that fall out of that. It also makes VSELECT legal for v2i64 as a
side benefit. A lot of the codegen changes as a result - usually in way
that is a little better or a little worse, but still expensive. Costs
can change a little too in the process, again in a way that expensive
things remain expensive. A lot of the tests that changed are mainly to
ensure correctness - the code can hopefully be improved in the future
where it comes up in practice.

The intrinsics currently remain using the v4i1 they previously did to
emulate a v2i1. This will be changed in a followup patch but this one
was already large enough.

Differential Revision: https://reviews.llvm.org/D114449
2021-12-03 14:05:41 +00:00
..
add-cast-vect.ll
arith-overflow.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
arith-ssat.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
arith-usat.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
arith.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
cast.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
cast_ldst.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
cmps.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
control-flow.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
divrem.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
fparith.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
freeshift.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
gep.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
immediates.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
insertelement.ll
intrinsic-cost-kinds.ll [NFC][llvm] Inclusive language: reword uses of sanity test and check 2021-11-25 07:21:42 -05:00
lit.local.cfg
load_store.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
logicalop.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
memcpy.ll
mul-cast-vect.ll
mve-abs.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
mve-active_lane_mask.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
mve-cmp.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
mve-gather-scatter-cost.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
mve-minmax.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
mve-vecreduce-add.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
reduce-add.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
reduce-and.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
reduce-or.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
reduce-smax.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
reduce-smin.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
reduce-umax.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
reduce-umin.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
select.ll [ARM] Make MVE v2i1 predicates legal 2021-12-03 14:05:41 +00:00
shl-cast-vect.ll
shuffle.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00
sub-cast-vect.ll
target-intrinsics.ll [ARM] Add datalayout to costmodel tests. NFC 2021-11-16 09:49:42 +00:00