[llvm-branch-commits] [llvm] [AArch64] Add patterns to combine SVE AND and XOR to BIC (PR #238442)

Vimal Patel via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 8 10:07:15 PST 2026


================
@@ -888,16 +982,21 @@ let Predicates = [HasSVE_or_SME] in {
   defm AND_ZI : sve_int_log_imm<0b10, "and", "bic", and>;
   defm BIC_ZI : sve_int_log_imm_bic<AArch64bic>;
 
-  // Allow AND_U nodes to select AND-immediate instructions.
-  class SVEAndUImmPat<ValueType VT, ValueType PT, ZPRRegOp ZPR,
-                     ValueType IT, ComplexPattern CP>
-    : Pat<(VT (SVEAndU (PT (SVEAnyPredicate)), (VT ZPR:$a),
+  // Allow AND_U and EOR_U nodes to select AND-immediate/EOR-immediate
+  // instructions.
+  multiclass SVEAndUImmPat<ValueType VT, ValueType PT, ZPRRegOp ZPR,
----------------
pvimal816a wrote:

Sure. I missed that. The name must be updated to reflect the current set of patterns in the class.

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


More information about the llvm-branch-commits mailing list