[llvm] [AArch64][GlobalISel] Treat vector select as legal (PR #197111)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 06:21:10 PDT 2026


================
@@ -6260,6 +6260,24 @@ def : Pat<(AArch64bsp (v4i32 V128:$Rd), V128:$Rn, V128:$Rm),
 def : Pat<(AArch64bsp (v2i64 V128:$Rd), V128:$Rn, V128:$Rm),
           (BSPv16i8 V128:$Rd, V128:$Rn, V128:$Rm)>;
 
+def : Pat<(v8i8 (select (v8i8 V64:$Rd), V64:$Rn, V64:$Rm)),
----------------
arsenm wrote:

These can also trigger for SDAG, so why weren't they already here?

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


More information about the llvm-commits mailing list