diff options
author | David Green <david.green@arm.com> | 2020-11-10 18:08:12 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2020-11-10 18:08:12 +0000 |
commit | 08d1c2d4701f5e66d5e328818905a62d6f4ba27e (patch) | |
tree | 188ad8429f119efc41cf31b06c90d4ab4891bbef /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 02af11094fe499011e720a2a41b87d0763e4ea4f (diff) | |
download | llvm-08d1c2d4701f5e66d5e328818905a62d6f4ba27e.zip llvm-08d1c2d4701f5e66d5e328818905a62d6f4ba27e.tar.gz llvm-08d1c2d4701f5e66d5e328818905a62d6f4ba27e.tar.bz2 |
[ARM] Introduce t2DoLoopStartTP
This introduces a new pseudo instruction, almost identical to a
t2DoLoopStart but taking 2 parameters - the original loop iteration
count needed for a low overhead loop, plus the VCTP element count needed
for a DLSTP instruction setting up a tail predicated loop. The idea is
that the instruction holds both values and the backend
ARMLowOverheadLoops pass can pick between the two, depending on whether
it creates a tail predicated loop or falls back to a low overhead loop.
To do that there needs to be something that converts a t2DoLoopStart to
a t2DoLoopStartTP, for which this patch repurposes the
MVEVPTOptimisationsPass as a "tail predication and vpt optimisation"
pass. The extra operand for the t2DoLoopStartTP is chosen based on the
operands of VCTP's in the loop, and the instruction is moved as late in
the block as possible to attempt to increase the likelihood of making
tail predicated loops.
Differential Revision: https://reviews.llvm.org/D90591
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions