[llvm] [GlobalIsel] Visit ICmp (PR #105991)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 31 09:30:55 PDT 2024
================
@@ -1884,6 +1881,28 @@ def cast_combines: GICombineGroup<[
buildvector_of_truncate
]>;
+def visit_icmp : GICombineRule<
----------------
tschuett wrote:
Combining compares is a good and hard sport. Maybe different rules apply.
CombinerHelper::visitICmp first tries to constant fold the compare, if that fails it tries to canonicalize the constant to right. It is hard to put that into two separate patterns, which are not wip_match_opcode G_ICMP.
I have no interest to ever add a visitMULH. Adding a visitFCmp is a different story.
https://github.com/llvm/llvm-project/pull/105991
More information about the llvm-commits
mailing list