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

Cherry pick: Revert "[InlineCost] Check for conflicting target attributes early" #153

Conversation

alessandrod
Copy link

@alessandrod alessandrod commented Sep 26, 2023

I would like to propose cherry-picking llvm@b4301df which is the revert/fix for an issue discussed in llvm#65205.

Without this revert we've noticed a lot of inlining failures when compiling for the BPF target. Credit to @qjerome for helping track down the issue.

This reverts commit d6f994a.

Several people have reported breakage resulting from this patch:

- llvm#65152
- llvm#65205
@nikic
Copy link

nikic commented Sep 26, 2023

Please always file for upstream backport first. I have now done so in llvm#65205 (comment).

@nikic nikic closed this Sep 26, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 28, 2023
Update LLVM submodule

Update LLVM submodule to pull in additional 17.x backports.

Fixes rust-lang#115970.
Fixes miscompile from rust-lang#115554.
Fixes miscompile from rust-lang#102099.
Fixes inlining regressions mentioned at rust-lang/llvm-project#153.
@tamird
Copy link

tamird commented Oct 2, 2023

Now that this landed upstream, can it be cherry-picked?

@cuviper
Copy link
Member

cuviper commented Oct 2, 2023

It was already included when Nikita merged the upstream release/17.x branch -- updated in rust-lang/rust#116227 and then backported for 1.73-beta in rust-lang/rust#116279.

@tamird
Copy link

tamird commented Oct 2, 2023

Ah thanks, it's in https://github.com/rust-lang/llvm-project/tree/rustc/17.0-2023-09-19.

vext01 pushed a commit to vext01/llvm-project that referenced this pull request May 13, 2024
Reject `getelementptr` instructions we don't yet handle.
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.

5 participants