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

llvm-alloc-opt: handle dead code better #39801

Merged
merged 1 commit into from
Mar 2, 2021
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Feb 23, 2021

In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).

Refs #39641

In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).
@vtjnash vtjnash added bugfix This change fixes an existing bug compiler:optimizer Optimization passes (mostly in base/compiler/ssair/) backport 1.6 Change should be backported to release-1.6 labels Feb 23, 2021
@vtjnash vtjnash requested a review from yuyichao February 23, 2021 23:05
@KristofferC KristofferC mentioned this pull request Mar 2, 2021
52 tasks
@vtjnash vtjnash merged commit 9e783bb into master Mar 2, 2021
@vtjnash vtjnash deleted the jn/39641-ProximalAlgorithms branch March 2, 2021 17:03
KristofferC pushed a commit that referenced this pull request Mar 14, 2021
In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).

(cherry picked from commit 9e783bb)
@KristofferC KristofferC mentioned this pull request Mar 14, 2021
14 tasks
@vtjnash vtjnash mentioned this pull request Mar 19, 2021
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Mar 23, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
In some cases (particularly after removing a phi node), we might end up
in a circumstance where it appears statically that we would use a slot
for both a ref and bits. Avoid generating malformed IR in this case.

In the future, this situation could also possibly happen if we walked
through phi nodes and attempted to merge the contents (with great care).

(cherry picked from commit 9e783bb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug compiler:optimizer Optimization passes (mostly in base/compiler/ssair/)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants