Widen element types of vector arguments of G_ADD, G_SUB, G_MUL, G_AND,
G_OR, G_XOR to the minumum supported size, in order to support vectors
of narrow types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/AArch64/GlobalISel/legalize-add.mir | ||
---|---|---|
317 | Adding 3-vector cases always finds something broken, probably should add those for each of these |
Comment Actions
Added tests for v3s1 type.
Put 'minScalarOrEltIf' legalization rules before 'moreElementsToNextPow2' rule
to avoid creation of vector operations with unclamped types that are not supported yet.
Comment Actions
LGTM. It would be nice if we could refactor the legalizer to allow better re-use of these rule patterns but that's for another patch.
Adding 3-vector cases always finds something broken, probably should add those for each of these