[PATCH] D107508: [AArch64][GlobalISel] Legalize wide vector G_PHIs
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 4 15:32:59 PDT 2021
paquette created this revision.
paquette added reviewers: aemerson, jroelofs.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka.
paquette requested review of this revision.
Herald added a project: LLVM.
Clamp the max number of elements when legalizing G_PHI. This allows us to legalize some common fallbacks like 4 x s64.
Here's an example: https://godbolt.org/z/6YocsEYTd
Had to add -global-isel-abort=0 to legalize-phi.mir to account for the G_EXTRACT_VECTOR_ELT from the 32 x s8 G_PHI.
https://reviews.llvm.org/D107508
Files:
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-phi.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107508.364273.patch
Type: text/x-patch
Size: 11825 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210804/53cd4086/attachment.bin>
More information about the llvm-commits
mailing list