Enables folding fadd x, (select c, (fneg a), (fneg b))
-> fsub (select a, b), c
Avoids some regressions in a future AMDGPU change.
Differential D140181
DAG: Pull fneg out of select feeding fadd into fsub arsenm on Dec 15 2022, 5:20 PM. Authored by
Details
Diff Detail Event Timeline
Comment Actions LGTM - happy for you to push the baseline tests and then please push my change as well
|
Why don't you want to use getNegatedExpression ?