This makes most sense for isFNegFree targets, but shouldn't make
things worse without it. This avoids AMDGPU test regressions in a
future patch.
For some reason APFloat::compareAbsoluteValue is private, so compute
the neg of the constants.
Paths
| Differential D140128
DAG: Look through fneg when trying to create unsafe minnum/maxnum ClosedPublic Authored by arsenm on Dec 15 2022, 10:59 AM.
Details Summary This makes most sense for isFNegFree targets, but shouldn't make For some reason APFloat::compareAbsoluteValue is private, so compute
Diff Detail Event Timelinearsenm added a child revision: D140326: DAG: Use getNegatedExpression in combineMinNumMaxNum.Dec 19 2022, 11:03 AM This revision is now accepted and ready to land.Jan 23 2023, 3:43 AM
Revision Contents
Diff 483243 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/ARM/unsafe-fneg-select-minnum-maxnum-combine.ll
|