Stream: cranelift

Topic: ✔ Benefit of stack_load/_store?


view this post on Zulip Veverak (Nov 19 2021 at 08:55):

Apart from the convenience, is there any benefit of using stack_load and stack_store as opposed to stack_addr and then load and store? In other words, if I have a type that can be either on the stack or a pointer to somewhere else, is it worth the inconvenience to track whether it's on the stack so that stack_load and stack_store can be used?

view this post on Zulip bjorn3 (Nov 19 2021 at 17:09):

Not really right now. stack_load/stack_store is lowered to stack_addr+load/store with memflags of notrap and aligned in the backend.

view this post on Zulip Notification Bot (Nov 19 2021 at 17:27):

Veverak has marked this topic as resolved.


Last updated: Dec 23 2024 at 12:05 UTC