llvm-project/llvm/unittests/CodeGen/GlobalISel
Petar Avramovic 29f88b93fd [GlobalISel] Rework more/fewer elements for vectors
Artifact combiner is not able to access individual elements after using
LCMTy style merge/unmerge, extract and insert to change vector number of
elements (pad with undef or split to sub-vector instructions).
Use unmerge to individual elements instead and then merge elements into
requested types.
Change argument lowering for vectors and moreElementsVector to use
buildPadVectorWithUndefElements and buildDeleteTrailingVectorElements.
FewerElementsVector had a few helpers that had different behavior,
introduce new helper for most of the opcodes.
FewerElementsVector helper is more flexible since it can create leftover
instruction smaller then requested type (useful in case target wants to
avoid pad with undef and use fewer registers). If target does not want
leftover of different type it should call more elements first.
Some helpers were performing more elements first to have split without
leftover. Opcodes that used this helper use clampMaxNumElementsStrict
(does more elements first) in LegalizerInfo to avoid test changes.
Fixes failures caused by failing to combine artifacts created during
more/fewer elements vector.

Differential Revision: https://reviews.llvm.org/D114198
2021-12-23 14:30:02 +01:00
..
CMakeLists.txt [GlobalISel] Add a store-merging optimization pass and enable for AArch64. 2021-11-15 21:10:39 -08:00
CSETest.cpp [GlobalISel] Combine G_UMULH x, (1 << c)) -> x >> (bitwidth - c) 2021-10-07 23:51:37 -07:00
ConstantFoldingTest.cpp [GlobalISel] Remove ConstantFoldingMIRBuilder 2021-04-23 09:13:27 +01:00
GISelAliasTest.cpp [GlobalISel] Add a store-merging optimization pass and enable for AArch64. 2021-11-15 21:10:39 -08:00
GISelMITest.cpp
GISelMITest.h Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
GISelUtilsTest.cpp [GlobalISel] NFC: Change LLT::vector to take ElementCount. 2021-06-24 11:26:12 +01:00
KnownBitsTest.cpp [APInt] Normalize naming on keep constructors / predicate methods. 2021-09-09 09:50:24 -07:00
KnownBitsVectorTest.cpp [GlobalISel] Verify operand types for G_SHL, G_LSHR, G_ASHR 2021-12-21 11:59:33 +00:00
LegalizerHelperTest.cpp [GlobalISel] Rework more/fewer elements for vectors 2021-12-23 14:30:02 +01:00
LegalizerInfoTest.cpp GlobalISel: Use LLT in memory legality queries 2021-06-30 17:44:13 -04:00
LegalizerTest.cpp [GlobalISel] Avoid creating COPY in LegalizationArtifactCombiner 2021-08-24 11:09:56 +02:00
MachineIRBuilderTest.cpp CodeGen: Print/parse LLTs in MachineMemOperands 2021-06-30 16:54:13 -04:00
PatternMatchTest.cpp [GlobalISel] Add matchers for constant splat. 2021-11-30 15:18:50 +05:30