[llvm] [X86][CodeGen] Support lowering for CCMP/CTEST (PR #91747)
Evgenii Kudriashov via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 11:58:41 PDT 2024
================
@@ -54508,7 +54513,97 @@ static bool onlyZeroFlagUsed(SDValue Flags) {
return true;
}
+static SDValue
+combineX86SubCmpToCcmpHelper(SDNode *N, SDValue Flag, SelectionDAG &DAG,
+ TargetLowering::DAGCombinerInfo &DCI,
+ const X86Subtarget &ST) {
+ // sub(and(setcc(cc0, flag0), setcc(cc1, sub (X, Y))), 1)
+ // brcond ne
+ //
+ // OR
+ //
+ // sub(and(setcc(cc0, flag0), setcc(cc1, sub (X, Y))), 1)
+ // brcond ne
----------------
e-kud wrote:
Are these parts of OR the same? Guess we expect to see `sub` on different place.
https://github.com/llvm/llvm-project/pull/91747
More information about the llvm-commits
mailing list