This is an archive of the discontinued LLVM Phabricator instance.

DAG: Lower is.fpclass fcInf to fcmp of fabs
ClosedPublic

Authored by arsenm on Feb 2 2023, 9:27 AM.

Details

Summary

InstCombine should have taken care of this, but I think
this is more useful in the future when the expansion
tries to handle multiple cases at a time with fcmp.

x87 looks worse to me but the only thing I know about it is that
I aggressively do not care about it.

Diff Detail

Event Timeline

arsenm created this revision.Feb 2 2023, 9:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 9:27 AM
arsenm requested review of this revision.Feb 2 2023, 9:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 2 2023, 9:27 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 494340.Feb 2 2023, 9:32 AM

Fix nan handling in inverted case

nemanjai added a subscriber: qiucf.Mar 6 2023, 7:39 AM

The PPC changes look fine to me. I believe that the new TOC loads will likely go away with https://reviews.llvm.org/D140381. Is that assumption correct @qiucf?

qiucf added a comment.Mar 7 2023, 6:12 PM

The PPC changes look fine to me. I believe that the new TOC loads will likely go away with https://reviews.llvm.org/D140381. Is that assumption correct @qiucf?

Yes, for ISA 3.0+.

nemanjai accepted this revision.Jul 7 2023, 11:11 AM

LGTM.

This revision is now accepted and ready to land.Jul 7 2023, 11:11 AM