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

Fix inlining of exception handlers #27502

Merged
merged 2 commits into from
Jun 10, 2018
Merged

Fix inlining of exception handlers #27502

merged 2 commits into from
Jun 10, 2018

Conversation

Keno
Copy link
Member

@Keno Keno commented Jun 8, 2018

Usually exception handlers immediately disqualify a function for inlining,
which is why we did not see this before. However, that can of course be
overriden with @inline. In the CFG, we use 0 as a virtual predecessor,
to the catch block, in order to force all values to go through the PhiC
mechanism. We need to avoid trying to rename this virtual predecessor.

Fixes #27456

Keno and others added 2 commits June 8, 2018 16:32
Usually exception handlers immediately disqualify a function for inlining,
which is why we did not see this before. However, that can of course be
overriden with `@inline`. In the CFG, we use `0` as a virtual predecessor,
to the catch block, in order to force all values to go through the PhiC
mechanism. We need to avoid trying to rename this virtual predecessor.

Fixes #27456
@martinholters
Copy link
Member

Can't check right now (on the phone), but does the test actually fail without the fix? Or does it print the error but then pass nonetheless?

@Keno
Copy link
Member Author

Keno commented Jun 10, 2018

Prints the error, but I think we'd notice if the test started barfing error messages.

@Keno Keno merged commit fe43376 into master Jun 10, 2018
@martinholters martinholters deleted the kf/27456 branch June 10, 2018 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants