Skip to content
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

[mir-opt] Allow debuginfo to be generated for a constant or a Place #73210

Merged
merged 2 commits into from
Dec 15, 2020

Commits on Dec 7, 2020

  1. [mir-opt] Allow debuginfo to be generated for a constant or a Place

    Prior to this commit, debuginfo was always generated by mapping a name
    to a Place. This has the side-effect that `SimplifyLocals` cannot remove
    locals that are only used for debuginfo because their other uses have
    been const-propagated.
    
    To allow these locals to be removed, we now allow debuginfo to point to
    a constant value. The `ConstProp` pass detects when debuginfo points to
    a local with a known constant value and replaces it with the value. This
    allows the later `SimplifyLocals` pass to remove the local.
    wesleywiser committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    01aec8d View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2020

  1. Disable the constant debuginfo promotion pass by default

    It doesn't work correctly on *-pc-windows-gnu
    wesleywiser committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    0b18ed8 View commit details
    Browse the repository at this point in the history