This is an archive of the discontinued LLVM Phabricator instance.

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
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.

Diff Detail