[llvm] [AArch64][GlobalISel] Use generic matchinfo. NFC (PR #195094)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 07:31:33 PDT 2026
https://github.com/davemgreen created https://github.com/llvm/llvm-project/pull/195094
This removes some of the simple AArch64 matchinfo's, using the generic
alternatives instead.
>From f1fd52e52a1386453f51b170cebe6ae59b6e7f61 Mon Sep 17 00:00:00 2001
From: David Green <david.green at arm.com>
Date: Thu, 30 Apr 2026 15:31:21 +0100
Subject: [PATCH] [AArch64][GlobalISel] Use generic matchinfo. NFC
This removes some of the simple AArch64 matchinfo's, using the generic
alternatives instead.
---
llvm/lib/Target/AArch64/AArch64Combine.td | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/llvm/lib/Target/AArch64/AArch64Combine.td b/llvm/lib/Target/AArch64/AArch64Combine.td
index fe953a627939d..6ca3946cff575 100644
--- a/llvm/lib/Target/AArch64/AArch64Combine.td
+++ b/llvm/lib/Target/AArch64/AArch64Combine.td
@@ -17,9 +17,8 @@ def fconstant_to_constant : GICombineRule<
[{ return matchFConstantToConstant(*${root}, MRI); }]),
(apply [{ applyFConstantToConstant(*${root}); }])>;
-def icmp_redundant_trunc_matchdata : GIDefMatchData<"Register">;
def icmp_redundant_trunc : GICombineRule<
- (defs root:$root, icmp_redundant_trunc_matchdata:$matchinfo),
+ (defs root:$root, register_matchinfo:$matchinfo),
(match (G_ICMP $dst, $tst, $src1, $src2):$root,
[{ return matchICmpRedundantTrunc(*${root}, MRI, Helper.getValueTracking(), ${matchinfo}); }]),
(apply [{ applyICmpRedundantTrunc(*${root}, MRI, B, Observer, ${matchinfo}); }])>;
@@ -157,9 +156,8 @@ def shuf_to_ins: GICombineRule <
(apply [{ applyINS(*${root}, MRI, B, ${matchinfo}); }])
>;
-def vashr_vlshr_imm_matchdata : GIDefMatchData<"int64_t">;
def vashr_vlshr_imm : GICombineRule<
- (defs root:$root, vashr_vlshr_imm_matchdata:$matchinfo),
+ (defs root:$root, int64_matchinfo:$matchinfo),
(match (wip_match_opcode G_ASHR, G_LSHR):$root,
[{ return matchVAshrLshrImm(*${root}, MRI, ${matchinfo}); }]),
(apply [{ applyVAshrLshrImm(*${root}, MRI, ${matchinfo}); }])
@@ -282,9 +280,8 @@ def lower_vector_fcmp : GICombineRule<
[{ return matchLowerVectorFCMP(*${root}, MRI, B); }]),
(apply [{ applyLowerVectorFCMP(*${root}, MRI, B); }])>;
-def form_truncstore_matchdata : GIDefMatchData<"Register">;
def form_truncstore : GICombineRule<
- (defs root:$root, form_truncstore_matchdata:$matchinfo),
+ (defs root:$root, register_matchinfo:$matchinfo),
(match (G_STORE $src, $addr):$root,
[{ return matchFormTruncstore(*${root}, MRI, ${matchinfo}); }]),
(apply [{ applyFormTruncstore(*${root}, MRI, B, Observer, ${matchinfo}); }])
@@ -318,9 +315,8 @@ def vector_sext_inreg_to_shift : GICombineRule<
(apply [{ applyVectorSextInReg(*${d}, MRI, B, Observer); }])
>;
-def unmerge_ext_to_unmerge_matchdata : GIDefMatchData<"Register">;
def unmerge_ext_to_unmerge : GICombineRule<
- (defs root:$d, unmerge_ext_to_unmerge_matchdata:$matchinfo),
+ (defs root:$d, register_matchinfo:$matchinfo),
(match (wip_match_opcode G_UNMERGE_VALUES):$d,
[{ return matchUnmergeExtToUnmerge(*${d}, MRI, ${matchinfo}); }]),
(apply [{ applyUnmergeExtToUnmerge(*${d}, MRI, B, Observer, ${matchinfo}); }])
More information about the llvm-commits
mailing list