[llvm] [BOLT][AArch64] Implement PLTCall optimization (PR #93584)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 10:30:22 PDT 2024
================
@@ -1412,9 +1413,15 @@ class MCPlusBuilder {
return false;
}
- /// Modify a direct call instruction \p Inst with an indirect call taking
- /// a destination from a memory location pointed by \p TargetLocation symbol.
- virtual bool convertCallToIndirectCall(MCInst &Inst,
+ /// Modify a direct call instruction pointed by the iterator \p It, with an
+ /// indirect call taking a destination from a memory location pointed by \p
+ /// TargetLocation symbol. If additional instructions need to be prepended
+ /// before \p It, then the iterator must be updated to point to the indirect
+ /// call instruction.
+ ///
+ /// \return true on success
+ virtual bool convertCallToIndirectCall(BinaryBasicBlock &BB,
----------------
paschalis-mpeis wrote:
On Aarch64, `convertCallToIndirectCall` does more than a direct->indirect call conversion to implement this optimization. If this is considered misleading we could rename the method.
https://github.com/llvm/llvm-project/pull/93584
More information about the llvm-commits
mailing list