github-actions[bot] commented on Issue #2219:
Subscribe to Label Action
cc @bnjbvr
<details>
This issue or pull request has been labeled: "cranelift", "cranelift:area:x64"Thus the following users have been cc'd because of the following labels:
- bnjbvr: cranelift
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
abrown commented on Issue #2219:
I believe
gen_store_stack
andgen_load_stack
can be refactored to useInst::load
andInst::store
. When I createdInst::load/Inst::store
, I wasn't sure about replacing the stack functions because of the signature difference but, looking at it now, it seems like all that is necessary is alet mem = SyntheticAmode::from(mem)
. UsingInst::load/Inst::store
has the advantage of de-duplication but also uses the appropriate SSE opcodes for each vector type.
bnjbvr commented on Issue #2219:
I believe gen_store_stack and gen_load_stack can be refactored to use Inst::load and Inst::store. When I created Inst::load/Inst::store, I wasn't sure about replacing the stack functions because of the signature difference but, looking at it now, it seems like all that is necessary is a let mem = SyntheticAmode::from(mem). Using Inst::load/Inst::store has the advantage of de-duplication but also uses the appropriate SSE opcodes for each vector type.
Very nice, thanks!
Last updated: Nov 22 2024 at 16:03 UTC