[PATCH] D146517: [ARM] Convert active.lane.masks to vctp with non-zero starts
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 05:06:53 PDT 2023
dmgreen created this revision.
dmgreen added reviewers: samtebbs, NickGuy, chill, labrinea.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.
This attempts to expand the logic in the MVETailPredication pass to convert active lane masks that the vectorizer produces to vctp instructions that the backend can later turn into tail predicated loops. There is some adjustment to the logic to handle this, moving some of the code to check the addrec earlier so that we can get the start value. This start value is then incorporated into the logic of checkin the new vctp is valid, and there is a newly added check that it is known to be a multiple of the VF as we expect.
https://reviews.llvm.org/D146517
Files:
llvm/lib/Target/ARM/MVETailPredication.cpp
llvm/test/CodeGen/Thumb2/LowOverheadLoops/varying-outer-2d-reduction.ll
llvm/test/CodeGen/Thumb2/mve-laneinterleaving-reduct.ll
llvm/test/CodeGen/Thumb2/mve-tailpred-nonzerostart.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146517.506911.patch
Type: text/x-patch
Size: 25047 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/8c778d70/attachment.bin>
More information about the llvm-commits
mailing list