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

[InstCombine] Simplify with.overflow intrinsics with assumption information #84016

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dtcxzyw
Copy link
Member

@dtcxzyw dtcxzyw commented Mar 5, 2024

dtcxzyw added a commit to dtcxzyw/llvm-opt-benchmark that referenced this pull request Mar 5, 2024
@dtcxzyw
Copy link
Member Author

dtcxzyw commented Mar 12, 2024

Closed in favor of rust-lang/rust#122282.

@dtcxzyw dtcxzyw closed this Mar 12, 2024
@DianQK
Copy link
Member

DianQK commented Mar 12, 2024

Hmm, this is the first step, and we still need subsequent PRs to complete this simplification.
(In fact, there's a problem here that cannot be solved for now. We cannot do this in std or core library.

@dtcxzyw dtcxzyw reopened this Mar 12, 2024
@dtcxzyw
Copy link
Member Author

dtcxzyw commented Apr 11, 2024

@DianQK Should I close this PR since rust-lang/rust#122975 landed?

@DianQK
Copy link
Member

DianQK commented Apr 11, 2024

@DianQK Should I close this PR since rust-lang/rust#122975 landed?

I believe it will take at least two more PRs to resolve this issue. The first one is rust-lang/rust#123256 (comment).

Given the differences in inlining rules between Rust and LLVM, there are likely some edge cases that still cannot be resolved.

@antoniofrighetto
Copy link
Contributor

This looks ready and rust-lang/rust#122975 looks orthogonal to me, should we undraft it?

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.

3 participants