-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
[meta] Make llvm passes debug info invariant #37076
Comments
For this approach we have: We have this pipeline setup for some our Sony internal test-suites and it's generally very effective FWIW. We've not had the spare bandwidth to fix all of the existing bugs unfortunately, but we do tend to report/fix regressions as we spot them. Hopefully we'll be able to find some spare bandwidth to help with this effort :) |
Added a couple older bugs to the list. Post-RA Scheduler will likely be |
check_cfc test script Run as: ./check_cfc.sh 2>test_err.log |
check_cfc test result |
*** Bug llvm/llvm-bugzilla-archive#43757 has been marked as a duplicate of this bug. *** |
mentioned in issue #40314 |
mentioned in issue #40456 |
mentioned in issue #41483 |
mentioned in issue #42636 |
mentioned in issue llvm/llvm-bugzilla-archive#43757 |
mentioned in issue #43103 |
mentioned in issue #43204 |
mentioned in issue #43309 |
mentioned in issue #43767 |
mentioned in issue #44225 |
mentioned in issue #48790 |
mentioned in issue #49035 |
mentioned in issue #49044 |
mentioned in issue #49326 |
mentioned in issue #49924 |
mentioned in issue #50454 |
mentioned in issue #50525 |
mentioned in issue #50539 |
mentioned in issue #50540 |
mentioned in issue #50911 |
mentioned in issue #50912 |
mentioned in issue llvm/llvm-bugzilla-archive#51571 |
mentioned in issue #51880 |
mentioned in issue #51881 |
mentioned in issue #51882 |
#52711 is another instance (maybe we want to move the meta bug into a project or something else that acts as a better grouping over here in github issues, compared to what we were doing with bugzilla) |
Hello, I think it would be good to do some cleanup on these bug reports. I think a number of open bugs can be closed because they seemed to have been fixed. Ones that have been fixed (I think): #36588 #37063 #40314 #40456 Also, if you are able to reproduce the other bug reports, should they be tagged "Confirmed"? Thanks |
Extended Description
This is a meta bug for tracking work related to making llvm passes debug info invariant. That means that the output of llvm passes should be the same, modulo debug info metadata & intrinsics, regardless of whether the input IR contains debug info. The motivation for this is that enabling debug info should not degrade optimizations.
There are at least two different approaches for detecting debug invariance bugs:
Compile a C program with/without -g, and check that the resulting text sections are identical.
Compile some LLVM IR using opt, with/without -debugify-each enabled, and check that the stripped output is identical. The -debugify-each mode applies/removes synthetic debug info to a Module before/after each pass in opt's pipeline.
The second approach might be a bit more flexible, seeing as it's possible to generate LLVM IR from a C program, and to then run a custom pipeline over the IR using opt.
In addition to finding debug invariance bugs, we should think about setting up infrastructure to detect regressions, and about adding utilities to the codebase which might make it easier to write debug info invariant passes.
The text was updated successfully, but these errors were encountered: