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
InstCombine drops debug value info towards end of function #61153
Comments
@llvm/issue-subscribers-debuginfo |
Readding |
@llvm/issue-subscribers-debuginfo |
Hrrrrmmmm. This is certainly a dropped variable location, and the reasons are quite good: with no users there's no need to keep the PHI, and with no PHI there's no way to represent the value of On the other hand: the reason why the PHI can be dropped is because instcombine is able to express the value of I fear the internal representation of values being computed by instcombine might not be in a convenient format to then transform into debug-info expressions, however it's well worth examining. It might not be a cost-effective improvement to debug-info though. |
The
InstCombine
pass removes debug value info foris_annotated
towards theend of the function, and this is then propagated throughout the whole function.
Versions
Compiler Explorer
Program source
Debug info view
Location for
is_annotated
is missing throughout the function.IR before
InstCombine
IR after
InstCombine
IR diff before and after
InstCombine
The text was updated successfully, but these errors were encountered: