This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Fix computeKnownFPClass for fabs
ClosedPublic

Authored by arsenm on Apr 19 2023, 3:24 PM.

Details

Summary

The fabs utility functions have the opposite purpose and
probably should not be a general utility.

Diff Detail

Event Timeline

arsenm created this revision.Apr 19 2023, 3:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2023, 3:24 PM
arsenm requested review of this revision.Apr 19 2023, 3:24 PM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 515525.Apr 20 2023, 4:35 PM
foad accepted this revision.Apr 21 2023, 8:51 AM

Code LGTM.

The situation with the fabs helpers is not great. We have two, they do opposite things, one isn't documented and the other is documented in a way that I can't understand.

This revision is now accepted and ready to land.Apr 21 2023, 8:51 AM