[PATCH] D26290: Only consider local functions local for the purpose of NOP eliminate after calls on PPC64

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 04:48:53 PST 2016


joerg added a comment.

http://math-atlas.sourceforge.net/devel/assembly/PPC-elf64abi-1.7.pdf

3.5.11 Function Calls

Programs use the 64-bit PowerPC bl instruction to make direct function calls. The bl instruction must be
followed by a nop instruction.

---

The definition we currently use for whether a call is interposable doesn't agree with the logic in GNU ld or GCC. While it doesn't matter for inlined functoins, a call must contain the nop as the target can be replaced.


https://reviews.llvm.org/D26290





More information about the llvm-commits mailing list