llvm-project
0977a713 - [BOLT] Skip FDE emission for patch functions (#136224)

Commit
274 days ago
[BOLT] Skip FDE emission for patch functions (#136224) Patch functions are used to fix instructions in the original code, i.e., they are not functions in a traditional sense, but rather pieces of emitted code that are embedded into real functions. We used to emit FDEs for all functions, including patch functions. However, FDEs for patches are not only unnecessary, but they can lead to problems with libraries and runtimes that consume FDEs, e.g. C++ exception handling runtime. Note that we use named patches to fix function entry points and in that case they behave more like regular functions. Thus we issue FDEs for those.
Author
Parents
Loading