[llvm] [GlobalISel] Combine [S,U]SUBO (PR #116489)

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 09:54:45 PST 2024


Thorsten =?utf-8?q?Sch=C3=BCtt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Sch=C3=BCtt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Sch=C3=BCtt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/116489 at github.com>


================
@@ -1385,6 +1385,12 @@ def match_addos : GICombineRule<
         [{ return Helper.matchAddOverflow(*${root}, ${matchinfo}); }]),
   (apply [{ Helper.applyBuildFn(*${root}, ${matchinfo}); }])>;
 
+def match_subo_no_overflow : GICombineRule<
+  (defs root:$root, build_fn_matchinfo:$matchinfo),
+  (match (wip_match_opcode G_SSUBO, G_USUBO):$root,
----------------
aemerson wrote:

Could you just use `match` instead of `wip_match_opcode`?

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


More information about the llvm-commits mailing list