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

Re-enable UseAggressiveReg2MemForCodeSize on Wasm #77567

Open
kateinoigakukun opened this issue Nov 12, 2024 · 2 comments
Open

Re-enable UseAggressiveReg2MemForCodeSize on Wasm #77567

kateinoigakukun opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
compiler The Swift compiler itself WebAssembly Platform: WebAssembly

Comments

@kateinoigakukun
Copy link
Member

kateinoigakukun commented Nov 12, 2024

Description

The optimization is currently disabled on Wasm as it causes LLVM ISel panic.

PromoteFloatResult #0: t51: f16 = freeze t7

<unknown>:0: error: fatal error encountered during compilation; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
<unknown>:0: note: Do not know how to promote this operator's result!

Full failed build log

Once we fix this issue, we should revert the following changes:

@kateinoigakukun kateinoigakukun added compiler The Swift compiler itself WebAssembly Platform: WebAssembly labels Nov 12, 2024
@kateinoigakukun kateinoigakukun self-assigned this Nov 12, 2024
@kateinoigakukun
Copy link
Member Author

Here is a minimal crash repro:

target triple = "wasm32-unknown-unknown"

define half @freeze_half(half %f) nounwind {
  %t0 = freeze half %f
  ret half %t0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler itself WebAssembly Platform: WebAssembly
Projects
None yet
Development

No branches or pull requests

1 participant