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 ExpandMemoryOpPass don't work properly #2399

Merged
merged 3 commits into from
Jul 29, 2023

Conversation

no1wudi
Copy link
Collaborator

@no1wudi no1wudi commented Jul 28, 2023

Tw revert commit for test.

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

@yamt
Copy link
Collaborator

yamt commented Jul 28, 2023

Tw revert commit for test.

what's "Tw"?

@no1wudi
Copy link
Collaborator Author

no1wudi commented Jul 28, 2023

Tw revert commit for test.

what's "Tw"?

Emm, it's a simple typo, I reverted the issue commit for test purpose, but forget to remove them from PR, it's should be OK since merge operation will squash them to a single commit.

@wenyongh wenyongh merged commit 10b18d8 into bytecodealliance:main Jul 29, 2023
368 checks passed
Zzzabiyaka pushed a commit to Zzzabiyaka/wasm-micro-runtime that referenced this pull request Aug 1, 2023
The old method may not work for some cases. This PR iterates over all instructions
in the function, looking for memcpy, memmove and memset instructions, putting
them into a set, and finally expands them into a loop one by one.

And move this LLVM Pass after building the pipe line of pass builder to ensure that
the memcpy/memmove/memset instrinsics are generated before applying the pass.
victoryang00 pushed a commit to victoryang00/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
The old method may not work for some cases. This PR iterates over all instructions
in the function, looking for memcpy, memmove and memset instructions, putting
them into a set, and finally expands them into a loop one by one.

And move this LLVM Pass after building the pipe line of pass builder to ensure that
the memcpy/memmove/memset instrinsics are generated before applying the pass.
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.

None yet

3 participants