================
@@ -14945,6 +14945,13 @@ SDValue SITargetLowering::performMinMaxCombine(SDNode *N,
}
}
+ // max(x, neg(x)) -> abs(x)
----------------
shiltian wrote:
Can we do this in the generic part?
https://github.com/llvm/llvm-project/pull/163907