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

fix potential wamrc bug when translating block opcode #2622

Merged

Conversation

TianlongLiang
Copy link
Collaborator

Fix a wamrc bug mentioned in #2620 (the sign extension instruction is inserted after the terminator when compare instruction precedes a block)

Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenyongh wenyongh merged commit 059fbfc into bytecodealliance:main Oct 8, 2023
368 checks passed
@TianlongLiang TianlongLiang deleted the dev/wamrc_branching_bug_fix branch October 23, 2023 06:16
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ytecodealliance#2622)

The LLVM zext IR may be inserted after the terminator of a basic block
when popping the arguments of a wasm block. Change to insert the
zext IR before the terminator of the basic block to resolve the issue.

Reported in bytecodealliance#2620.
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.

2 participants