This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Handle no-nan check for computeKnownFPClass for fadd/fsub
ClosedPublic

Authored by arsenm on Apr 8 2023, 6:47 AM.

Details

Summary

Copy the logic from isKnownNeverNaN for fadd/fsub.

Diff Detail

Event Timeline

arsenm created this revision.Apr 8 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 6:47 AM
arsenm requested review of this revision.Apr 8 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 6:47 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 511918.Apr 8 2023, 12:25 PM

Don't need FPClassTest::

nikic accepted this revision.Apr 11 2023, 4:13 AM

LGTM

llvm/lib/Analysis/ValueTracking.cpp
4452

Add a TODO to check the signs of the infinities? Current implementation is conservative.

This revision is now accepted and ready to land.Apr 11 2023, 4:13 AM
arsenm marked an inline comment as done.Apr 11 2023, 6:41 PM