-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Emitted binary code changes when -g is enabled at -O0 #50525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks to me like unreachableblockelim declines to delete a block with a dbg.label intrinsic in it, which leads to an extraneous empty block. |
Right, the net difference is this extra jmp:
Knowing when to ignore debug-info instructions is an ongoing pain point. |
Just for reference, here's the diff of the object files.
|
Hhhmmmm, actually that patch doesn't fix it. If you run |
@llvm/issue-subscribers-debuginfo |
Uh oh!
There was an error while loading. Please reload this page.
Extended Description
The .text section for the following program (transformed_program0.c) changes after toggling the -g flag.
The text was updated successfully, but these errors were encountered: