This is an archive of the discontinued LLVM Phabricator instance.

ValueTracking: Handle compare to nan and -inf constants in fcmpToClassTest
ClosedPublic

Authored by arsenm on May 24 2023, 1:01 PM.

Details

Summary

This will help enable a cleanup of simplifyFCmpInst

Diff Detail

Event Timeline

arsenm created this revision.May 24 2023, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 1:01 PM
arsenm requested review of this revision.May 24 2023, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 1:01 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad added inline comments.Jun 19 2023, 6:19 AM
llvm/lib/Analysis/ValueTracking.cpp
4161

Should handle OGT and ULE as a pair, like you do for all the other inverse pairs.

4172

"or"

arsenm updated this revision to Diff 532644.Jun 19 2023, 7:23 AM
arsenm marked an inline comment as done.
arsenm added inline comments.
llvm/lib/Analysis/ValueTracking.cpp
4172

The comment just goes away if handled as the inverse of OGT

foad accepted this revision.Jun 19 2023, 7:36 AM
This revision is now accepted and ready to land.Jun 19 2023, 7:36 AM