[PATCH] D153100: [SPIR-V] Remove OpSelect pattern

Aleksandr Bezzubikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 22:03:01 PDT 2023


zuban32 created this revision.
Herald added subscribers: ThomasRaoux, hiraditya.
Herald added a project: All.
zuban32 requested review of this revision.
Herald added a reviewer: mpaszkowski.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153100

Files:
  llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
  llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
  llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153100.531985.patch
Type: text/x-patch
Size: 7872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230616/68801821/attachment.bin>


More information about the llvm-commits mailing list