[InstSimplify] don't commute constant expression operand in min/max calls
The test shows that we would fail to consistently fold the instruction based on the max value operand. This is also the root cause for issue #57986, but I'll add an instcombine test + assert for that exact problem in another commit.
Loading
Please sign in to comment