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

aarch64: Don't reuse destination registers when lowering splat #5370

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

elliottt
Copy link
Member

@elliottt elliottt commented Dec 2, 2022

Generate a temporary vreg when compiling a splat, instead of reusing the destination register.

@elliottt elliottt requested review from cfallin and fitzgen December 2, 2022 01:03
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:aarch64 Issues related to AArch64 backend. labels Dec 2, 2022
@cfallin cfallin merged commit 6aea8e0 into bytecodealliance:main Dec 5, 2022
cfallin added a commit to cfallin/wasmtime that referenced this pull request Mar 10, 2023
One of the cases for a splat operation, as updated in bytecodealliance#5370, wrote to
a temp reg but then only conditionally transformed the temp into the
final destination register. In another codepath, `rd` was left
undefined. This causes a panic later when regalloc2 verifies SSA
properties of its input (here, value not def'd before use).

Fixes bytecodealliance#5985.
cfallin added a commit that referenced this pull request Mar 11, 2023
One of the cases for a splat operation, as updated in #5370, wrote to
a temp reg but then only conditionally transformed the temp into the
final destination register. In another codepath, `rd` was left
undefined. This causes a panic later when regalloc2 verifies SSA
properties of its input (here, value not def'd before use).

Fixes #5985.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:aarch64 Issues related to AArch64 backend. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants