[PATCH] D143182: CodeGen: Optimize lowering of is.fpclass fcZero|fcSubnormal

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 06:57:05 PST 2023


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

Combine the two checks into a check if the exponent bits are 0. The
inverted case isn't reachable until a future change, and GlobalISel
currently doesn't attempt the inversion optimization.


https://reviews.llvm.org/D143182

Files:
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll
  llvm/test/CodeGen/X86/is_fpclass.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143182.494293.patch
Type: text/x-patch
Size: 10964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230202/4a389523/attachment.bin>


More information about the llvm-commits mailing list