[llvm] [NVPTX] Make i16x2 a native type and add supported vec instructions (PR #65432)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 15:30:21 PDT 2023


================
@@ -3300,6 +3328,13 @@ def : Pat<(bf16 (extractelt (v2bf16 Int32Regs:$src), 1)),
 def : Pat<(v2bf16 (build_vector (bf16 Int16Regs:$a), (bf16 Int16Regs:$b))),
           (V2I16toI32 Int16Regs:$a, Int16Regs:$b)>;
 
+def : Pat<(i16 (extractelt (v2i16 Int32Regs:$src), 0)),
----------------
Artem-B wrote:

Specifically for build_vector and extractelt 0/1 for those types. If you see more opportunities, feel free to coalesce them tool. Now that we've switched to i32 registers for all those types, fair number of operations becomes common for those types. I've tried to merge them, but apparently missed some.


https://github.com/llvm/llvm-project/pull/65432


More information about the llvm-commits mailing list