Skip to content

Fix 40056: Prevent outlining of blocks with token type instructions (… #9005

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

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

compnerd
Copy link
Member

llvm#99759)

Hot cold splitting should not outline:

  1. Basic blocks with token type instructions
  2. Functions with scoped EH personality (As suggested by Vedant in Function has token parameter but isn't an intrinsic llvm/llvm-project#40056 (comment))

Fixes: llvm#40056
(cherry picked from commit c59ee7e) (cherry picked from commit 267c6ed)

…lvm#99759)

Hot cold splitting should not outline:
1. Basic blocks with token type instructions
1. Functions with scoped EH personality (As suggested by Vedant in
llvm#40056 (comment))

Fixes: llvm#40056
(cherry picked from commit c59ee7e)
(cherry picked from commit 267c6ed)
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

Explanation: Avoid performing HCS on certain constructs where the results are unlikely to be valuable and cause invalid IR to be formed.
Scope: This fixes compilation of code, particularly with C++, on Windows, including code in the toolchain (e.g. llbuild).
Issue: llvm#40056
Risk: C++ code with exceptions on Windows may continue to not be compiled properly.
Testing: CI builds of the toolchain
Reviewer: @compnerd

@compnerd
Copy link
Member Author

CC: @airspeedswift @DougGregor

@compnerd
Copy link
Member Author

CC: @bnbarham

@fredriss fredriss merged commit 961ea4e into swiftlang:swift/release/6.0 Jul 25, 2024
3 checks passed
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