[llvm] [AArch64][GlobalISel] Add tablegen pattern for uaddo combine (#198514) (PR #198724)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu May 21 07:54:33 PDT 2026
================
@@ -60,6 +60,14 @@ def push_sub_through_sext : push_opcode_through_ext<G_SUB, G_SEXT>;
def push_add_through_sext : push_opcode_through_ext<G_ADD, G_SEXT>;
def push_mul_through_sext : push_opcode_through_ext<G_MUL, G_SEXT>;
+def simplify_uaddo_matchinfo : GIDefMatchData<"std::pair<Register, Register>">;
+def simplify_uaddo : GICombineRule<
+ (defs root:$root, simplify_uaddo_matchinfo:$matchinfo),
+ (match (wip_match_opcode G_UADDO):$root,
----------------
davemgreen wrote:
Do you mind trying to change this to the new style `match (G_UADDO $dst, $src1, $src2):$root`. Otherwise we will need to change it again in the future.
https://github.com/llvm/llvm-project/pull/198724
More information about the llvm-commits
mailing list