This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Implement computeKnownFPClass for fma/fmuladd
ClosedPublic

Authored by arsenm on Apr 17 2023, 1:02 PM.

Details

Summary

Copy handling from CannotBeOrderedLessThanZero

Diff Detail

Event Timeline

arsenm created this revision.Apr 17 2023, 1:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 1:02 PM
arsenm requested review of this revision.Apr 17 2023, 1:02 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
foad accepted this revision.Apr 18 2023, 2:51 AM
foad added inline comments.
llvm/lib/Analysis/ValueTracking.cpp
4255

Could immediately do Known.knownNot(fcNegZero) here, since the x * x part can't be -0.

This revision is now accepted and ready to land.Apr 18 2023, 2:51 AM
arsenm updated this revision to Diff 514612.Apr 18 2023, 5:05 AM

Never -0

arsenm marked an inline comment as done.Apr 18 2023, 5:05 AM
foad accepted this revision.Apr 18 2023, 5:27 AM