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 bug when inlining pending nodes #37634

Merged
merged 1 commit into from
Sep 19, 2020
Merged

Fix bug when inlining pending nodes #37634

merged 1 commit into from
Sep 19, 2020

Conversation

Keno
Copy link
Member

@Keno Keno commented Sep 17, 2020

While working on IR, we give pending nodes SSA ids after the main
body of the function, and then we drop them in place during compaction.
Inlining was using thse IDs to try to determine which basic block
we're currently inlining into, but for pending blocks it was looking
at the raw ID rather than the insertion position, corrupting the CFG.

Fixes #37555
Fixes #37182

While working on IR, we give pending nodes SSA ids after the main
body of the function, and then we drop them in place during compaction.
Inlining was using thse IDs to try to determine which basic block
we're currently inlining into, but for pending blocks it was looking
at the raw ID rather than the insertion position, corrupting the CFG.

Fixes #37555
Fixes #37182
@vchuravy
Copy link
Member

@nanosoldier runtests(ALL)

@nanosoldier
Copy link
Collaborator

Your package evaluation job has completed - possible issues were detected. A full report can be found here. cc @maleadt

@vchuravy
Copy link
Member

Well I should have triggered a vs build to see the improvments, but non of the fails look like the reported issue.

@vchuravy vchuravy merged commit 4744785 into master Sep 19, 2020
@vchuravy vchuravy deleted the kf/inlinepending branch September 19, 2020 20:58
@rjkat
Copy link

rjkat commented Oct 8, 2020

any chance this could be backported to 1.5? happy to make a PR

@StefanKarpinski
Copy link
Member

I've added the backport label, so this should be included the next 1.5.x release.

@KristofferC KristofferC mentioned this pull request Oct 21, 2020
15 tasks
@KristofferC
Copy link
Member

Doesn't backport cleanly. Can push a backported commit to #38122

@vchuravy
Copy link
Member

The PR that this fixed a bug in is not part of 1.5

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.

bounds error on empty splat Internal BoundsError in the compiler (in getfield_elim_pass!)
6 participants