This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Restore ordered negative handling for frem
ClosedPublic

Authored by arsenm on Apr 26 2023, 7:17 AM.

Details

Summary

In D148674, the negative condition was weakened to only
checking isKnownNever(fcNegative), instead of cannotBeOrderedLessThanZero().

This avoids a regression when CannotBeOrderedLessThanZero is
replaced with computeKnownFPClass.

Diff Detail

Event Timeline

arsenm created this revision.Apr 26 2023, 7:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2023, 7:17 AM
arsenm requested review of this revision.Apr 26 2023, 7:17 AM
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

Same should also be done for fdiv but I guess there weren't any pre-existing tests relying on this

kpn accepted this revision.Apr 26 2023, 12:24 PM

LGTM

This revision is now accepted and ready to land.Apr 26 2023, 12:24 PM
foad accepted this revision.Apr 27 2023, 2:15 AM