This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Additional patterns for pmin/pax
ClosedPublic

Authored by samparker on Feb 8 2023, 6:32 AM.

Details

Summary

Each operation was missing their inverted condition using olt or ogt. Also, as we don't need to discern +/-0, I think we should also be able to use ole and oge.

Diff Detail

Event Timeline

samparker created this revision.Feb 8 2023, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 6:32 AM
samparker requested review of this revision.Feb 8 2023, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 6:32 AM
luke accepted this revision.Feb 9 2023, 4:58 PM

Nice, LGTM

This revision is now accepted and ready to land.Feb 9 2023, 4:58 PM
This revision was landed with ongoing or failed builds.Feb 10 2023, 1:55 AM
This revision was automatically updated to reflect the committed changes.

I don't think this is correct with respect to NaN vector elements. SIMDe is getting test failures starting with this commit, reported here: https://github.com/emscripten-core/emscripten/issues/18759

mr-c added a subscriber: mr-c.Feb 18 2023, 1:50 AM