[PATCH] D139772: InstSimplify: Add basic folding of llvm.is.fpclass intrinsic

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 10 07:50:33 PST 2022


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

Copied from the existing llvm.amdgcn.class handling; eventually I will
fold that to the generic intrinsic when legal. The tests should
probably move into an instsimplify only test.


https://reviews.llvm.org/D139772

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll
  llvm/test/Transforms/InstCombine/is_fpclass.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139772.481860.patch
Type: text/x-patch
Size: 18046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221210/7f746617/attachment.bin>


More information about the llvm-commits mailing list