This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Fold out is_fpclass inf checks from test mask for known finite sources
ClosedPublic

Authored by arsenm on Nov 30 2022, 6:58 AM.

Details

Summary

Make the partner transform already done for nnan sources.

Diff Detail

Event Timeline

arsenm created this revision.Nov 30 2022, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2022, 6:58 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
arsenm requested review of this revision.Nov 30 2022, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2022, 6:58 AM
Herald added a subscriber: wdng. · View Herald Transcript
This revision is now accepted and ready to land.Nov 30 2022, 10:53 PM
jcranmer-intel accepted this revision.Dec 2 2022, 2:14 PM
arsenm updated this revision to Diff 481864.Dec 10 2022, 8:56 AM

Also handle negated case

arsenm updated this revision to Diff 482332.Dec 12 2022, 6:44 PM

Don't bother with replaceOperand for the constant, it doesn't need to go to the worklist