llvm-project
2cf550a0 - [DebugInfo] Force early line-zero calls to have meaningful locations (#156850)

Commit
85 days ago
[DebugInfo] Force early line-zero calls to have meaningful locations (#156850) In functions that have been seriously deformed during optimisation, there can be call instructions with line-zero immediately after frame setup (see C reproducer in the test added). Our previous algorithms for prologue_end ignored these, meaning someone entering a function at prologue_end would break-in after a function call had completed. Prefer instead to place prologue_end and the function scope-line on the line zero call: this isn't false (it's the first meaningful instruction of the function) and is approximately true. Given a less than ideal function, this is an OK solution.
Author
Parents
Loading