I was looking at an independent problem for FP min/max patterns, when I noticed we don't always get this:
Cond ? -X : -Y --> -(Cond ? X : Y)
...even with the legacy IR form of fneg in the case with extra uses.
This fold isn't included in D61447. We might want to split that up into pieces that are similar to this patch, so we can gradually introduce the new 'fneg' into IR without causing regressions.
Do you know what pass needs updating so that we can use the UnOp form? I could work on that next...
If you don't know, that's fine. I can dig it up.