[PATCH] D144081: InstCombine: Fold and/or of fcmp into class

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 01:31:56 PST 2023


arsenm created this revision.
arsenm added reviewers: jcranmer-intel, sepavloff, kpn, foad, spatel, andrew.w.kaylor.
Herald added subscribers: kosarev, StephenFan, hiraditya, tpr.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This is motivated by patterns like !isfinite || zero. The AMDGPU math
libraries have a lot of patterns like this, and I'm trying to fix the
code to be more portable and less dependent on directly calling class
intrinsics.

      

I believe this is the first place where new is.fpclass calls are
introduced. There are more class-like compares that could be
recognized; this is a set I currently care about plus a few extras.

      

I swear I posted this before but can't seem to find it


https://reviews.llvm.org/D144081

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and-fcmp.ll
  llvm/test/Transforms/InstCombine/create-class-from-logic-fcmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144081.497591.patch
Type: text/x-patch
Size: 152083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230215/f36bdb39/attachment-0001.bin>


More information about the llvm-commits mailing list