This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Implement computeKnownFPClass for sin/cos
ClosedPublic

Authored by arsenm on Apr 8 2023, 4:18 PM.

Diff Detail

Event Timeline

arsenm created this revision.Apr 8 2023, 4:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2023, 4:18 PM
arsenm requested review of this revision.Apr 8 2023, 4:18 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
nikic added a subscriber: nikic.Apr 11 2023, 12:37 PM
nikic added inline comments.
llvm/lib/Analysis/ValueTracking.cpp
4442

Doesn't this also require that the src is non-nan as well?

arsenm added inline comments.Apr 11 2023, 12:42 PM
llvm/lib/Analysis/ValueTracking.cpp
4442

Yes. Annoyingly this applies to every operation

arsenm updated this revision to Diff 512639.Apr 11 2023, 7:14 PM

Also check for nan sources

nikic accepted this revision.Apr 12 2023, 12:20 AM

LGTM

This revision is now accepted and ready to land.Apr 12 2023, 12:20 AM