Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Feb 11, 2026

and replace them with unreachables. This might be useful in situations
where a module needs to be processed by tools that do not support
relaxed SIMD, but where the relaxed SIMD usage also does not affect the
output of the tool.

and replace them with unreachables. This might be useful in situations
where a module needs to be processed by tools that do not support
relaxed SIMD, but where the relaxed SIMD usage also does not affect the
output of the tool.
@tlively tlively requested a review from kripken February 11, 2026 22:14
@tlively
Copy link
Member Author

tlively commented Feb 11, 2026

cc @walkingeyerobot


std::unique_ptr<Pass> create() {
return std::make_unique<RemoveRelaxedSIMD>();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By convention we put these at the top (under the parallel bit)

(i32x4.relaxed_trunc_f32x4_s (local.get 0))
)
)
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test a case where a child must be kept around due to effects.

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

@tlively tlively enabled auto-merge (squash) February 12, 2026 00:13
@tlively tlively merged commit 2fe287c into main Feb 12, 2026
17 checks passed
@tlively tlively deleted the remove-relaxed-simd-pass branch February 12, 2026 00:55
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.

2 participants