This is an archive of the discontinued LLVM Phabricator instance.

[SPIR-V] Remove OpSelect pattern
AcceptedPublic

Authored by zuban32 on Jun 15 2023, 10:02 PM.

Details

Summary

Since SPIRV's OpSelect can have arguments of various types
(integer/float,scalar/vector) and it is the only ternary instruction
it's worth selecting it with a simple C++ function instead of a
dag pattern to avoid bothering with extra regclasses supporting its
selection.

Diff Detail

Event Timeline

zuban32 created this revision.Jun 15 2023, 10:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 10:02 PM
zuban32 requested review of this revision.Jun 15 2023, 10:02 PM
Herald added a project: Restricted Project. · View Herald Transcript

Overall, it looks good. We need to check if it passes tests.

iliya-diyachkov accepted this revision.Jul 13 2023, 1:41 PM

Since the testing passed fine, we can commit the patch.

This revision is now accepted and ready to land.Jul 13 2023, 1:41 PM