[llvm] [AArch64][GISel] Recover ADDHN from OR comparison masks (PR #213925)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 06:51:36 PDT 2026
================
@@ -362,6 +362,13 @@ def or_to_bsp: GICombineRule <
(apply [{ applyOrToBSP(*${root}, MRI, B, ${matchinfo}); }])
>;
+def trunc_or_to_addhn : GICombineRule <
+ (defs root:$root, simplify_uaddo_matchinfo:$matchinfo),
+ (match (G_TRUNC $dst, $src):$root,
+ [{ return matchTruncOrToADDHN(*${root}, MRI, VT, ${matchinfo}); }]),
+ (apply [{ applyTruncOrToADDHN(*${root}, MRI, B, ${matchinfo}); }])
----------------
davemgreen wrote:
.. then `(apply (G_ADDHN $src1, $src2))`
https://github.com/llvm/llvm-project/pull/213925
More information about the llvm-commits
mailing list