[llvm] [GlobalISel] Combine [S,U]SUBO (PR #116489)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 16 13:00:11 PST 2024
================
@@ -1901,6 +1907,13 @@ def cmp_combines: GICombineGroup<[
redundant_binop_in_equality
]>;
+
+def artifact_combines: GICombineGroup<[
+ merge_combines,
+ match_addos,
----------------
tschuett wrote:
Well, the legalizer builds addos while narrowing, e.g., adds:
https://github.com/llvm/llvm-project/blob/764275949897533a4be0728250e69a94d228fbc5/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp#L6289
Maybe artifacts is too strict. I stated in the summary that we import addos and the legalizer builds while legalizing non addos.
https://github.com/llvm/llvm-project/pull/116489
More information about the llvm-commits
mailing list