================
@@ -6797,6 +6797,13 @@ static Value *foldMinimumMaximumSharedOp(Intrinsic::ID
IID, Value *Op0,
if (X0 == Op1 || Y0 == Op1)
return M0;
+ // m(m(X, Y), Z) --> m(X, Y) if m(X, Z) == X or m(Y, Z) == Y.
+ if (MaxRecurse--) {
+ if (foldMinimumMaximumSharedOp(IID, X0, Op1, MaxRecurse) ||
----------------
harrisonGPU wrote:
Thanks, updated
https://github.com/llvm/llvm-project/pull/233365
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits