diff options
author | Paschalis Mpeis <paschalis.mpeis@arm.com> | 2024-06-11 19:21:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 19:21:11 +0100 |
commit | a13bc9714a6bfb766693aa7900217f6f9be6f25d (patch) | |
tree | c133af9d37929f6dfe933ba3c82d0d366a69258c /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | ca6386073308d3c41647d8fc3e2cf72a77d46c76 (diff) | |
download | llvm-a13bc9714a6bfb766693aa7900217f6f9be6f25d.zip llvm-a13bc9714a6bfb766693aa7900217f6f9be6f25d.tar.gz llvm-a13bc9714a6bfb766693aa7900217f6f9be6f25d.tar.bz2 |
[BOLT][AArch64] Implement PLTCall optimization (#93584)
`convertCallToIndirectCall` applies the PLTCall optimization and returns
an (updated if needed) iterator to the converted call instruction. Since
AArch64 requires to inject additional instructions to implement this
pass, the relevant BasicBlock and an iterator was passed to the
`convertCallToIndirectCall`.
`NumCallsOptimized` is updated only on successful application of the
pass.
Tests:
- Inputs/plt-tailcall.c: an example of a tail call optimized PLT call.
- AArch64/plt-call.test: it is the actual A64 test, that runs the
PLTCall optimization on the above input file and verifies the
application of the pass to the calls: 'printf' and 'puts'.
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions