[llvm] [Bolt] Teach bolt about no-return functions (PR #115616)

Gergely Bálint via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 00:45:31 PST 2024


bgergely0 wrote:

@elhewaty Hi! I would check with objdump, to see if my_error is indeed in the binary you built. But if BOLT finds it, I suspect it is in there. 

What I did to test the pass was commenting out most other passes in the `BinaryPassManager`, to only have the effect of this pass.  I could not comment out all (BOLT stops working if we remove too many Passes), so I kept these:
- FinalizeFunctions
- AssignSections
- PatchEntries
- InstructionLowering
- CheckLargeFunctions
- LowerAnnotations
- CleanMCState

I will check with the x86 target as well, but I think it could be another BOLT pass inlining something.

https://github.com/llvm/llvm-project/pull/115616


More information about the llvm-commits mailing list