This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Update v128.any_true
ClosedPublic

Authored by tlively on Apr 9 2021, 7:26 PM.

Details

Summary

In the final SIMD spec, there is only a single v128.any_true instruction, rather
than one for each lane interpretation because the semantics do not depend on the
lane interpretation.

Diff Detail

Event Timeline

tlively created this revision.Apr 9 2021, 7:26 PM
tlively requested review of this revision.Apr 9 2021, 7:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 9 2021, 7:26 PM
aheejin accepted this revision.Apr 10 2021, 6:22 AM

Not related to this CL, but why isn't all_true also a single instruction? Does that depend on the lane size?

This revision is now accepted and ready to land.Apr 10 2021, 6:22 AM

all_true returns true if all lanes are non-zero, not just if all lanes are -1. So if there are just a few bits set throughout the vector, whether all lanes are non-zero might depend on the lane interpretation.

This revision was automatically updated to reflect the committed changes.