This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Sign handling for minnum/maxnum
ClosedPublic

Authored by arsenm on Apr 18 2023, 12:29 PM.

Details

Summary

If we know one operand is positive for maxnum, or one is negative
for minnum, the result will have the same sign.

Diff Detail

Event Timeline

arsenm created this revision.Apr 18 2023, 12:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 12:29 PM
arsenm requested review of this revision.Apr 18 2023, 12:29 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 516985.Apr 25 2023, 4:48 PM

Address todo for minimum / maximum to avoid regressions

foad accepted this revision.Apr 26 2023, 1:39 AM
This revision is now accepted and ready to land.Apr 26 2023, 1:39 AM