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

Confusion on "store hoisting" #384

Closed
Shynar88 opened this issue Oct 13, 2019 · 2 comments
Closed

Confusion on "store hoisting" #384

Shynar88 opened this issue Oct 13, 2019 · 2 comments

Comments

@Shynar88
Copy link

On slide 31, it's hard for me to distinguish between "store hoisting" and "load hoisting". As far as I understood, "load hoisting" allows loading older values from a variable. However, "store hoisting" also seems to do a similar thing - loading older values from a variable. What is "store hoisting" and how is it different from "load hoisting"?

Thank you!

@jeehoonkang
Copy link
Member

You can think of "X hoisting" as reordering X before earlier instructions. The load hoisting example reorders a load before an earlier store; on the other hand, the store hoisting example reorders a store before an earlier load.

@Shynar88
Copy link
Author

Thank you so much for quick and thorough responses!!

@kyeongmincho kyeongmincho transferred this issue from kaist-cp/helpdesk Oct 14, 2021
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

No branches or pull requests

2 participants