Repository navigation
[Wasm RyuJit] Match how other targets consume initblk fill values - #129062
Conversation
genConsumeOperands(blkOp) routed the contained GT_INIT_VAL through genConsumeRegs and tripped its OperIsLeaf assert. Replace the call with explicit consume of dest and the unwrapped src, as other targets do. Co-authored-by: Copilot <[email protected]>
|
@dotnet/wasm-contrib PTAL Fixes some pri0 asserts (case 2 here: #128234 (comment)) |
There was a problem hiding this comment.
Pull request overview
This PR updates WASM RyuJIT codegen for GT_STORE_BLK so that when the initblk fill value is wrapped in a contained GT_INIT_VAL, codegen consumes the wrapped value (gtGetOp1()) instead of routing the GT_INIT_VAL wrapper through genConsumeRegs (which asserts on non-leaf contained nodes in codegenlinear.cpp).
Changes:
- Replace
genConsumeOperands(blkOp)with explicit consumption ofdestand an unwrappedsrcwhensrcis a containedGT_INIT_VAL. - Add an assertion documenting the invariant that
GT_INIT_VALshould be contained in this path.
|
@kg can you review? |
From the wasm spec
|
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
…29062) genConsumeOperands(blkOp) routed the contained GT_INIT_VAL through genConsumeRegs and tripped its OperIsLeaf assert. Replace the call with explicit consume of dest and the unwrapped src, as other targets do. Co-authored-by: Copilot <[email protected]>
genConsumeOperands(blkOp) routed the contained GT_INIT_VAL through genConsumeRegs and tripped its OperIsLeaf assert. Replace the call with explicit consume of dest and the unwrapped src, as other targets do.