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

effects: look for :terminate_globally override in backedge termination check #44106

Merged
merged 1 commit into from
Feb 14, 2022

Commits on Feb 13, 2022

  1. inference: look for :terminate_globally override in backedge termin…

    …ation check
    
    Now we can "fix" #41694:
    ```julia
    Base.@assume_effects :terminates_globally function issue41694(x)
        res = 1
        1 < x < 20 || throw("bad")
        while x > 1
            res *= x
            x -= 1
        end
        return res
    end
    @test fully_eliminated() do
        issue41694(2)
    end
    ```
    aviatesk committed Feb 13, 2022
    Configuration menu
    Copy the full SHA
    27586a8 View commit details
    Browse the repository at this point in the history