- Please add the tests to trunk as a preliminary commit.
- Add tests with 0.0 and -0.0 constants, so we are sure that edge case is handled correctly.
- Sprinkle around some fast-math-flags, so we know those are propagated correctly.
- Make at least 1 test use vector splat constants, so we know that type works.
Side note: do you know if the reassociate pass handles these? I imagine we're going to miss the optimization in instcombine if the constants are separated in a longer chain of min/max ops.
|2067 ↗||(On Diff #171329)|
Just call this "M" to match the code comment.