[PATCH] D152113: DAG: Lower is.fpclass fcSubnormal|fcZero to fabs(x) < smallest_normal

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 12:06:08 PDT 2023


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

Produces better code on x86_64 only in the unordered case. Not
sure what the exact condition should be to avoid the regression. Free
fabs might do it, or maybe requires legality checks for the alternative
integer expansion.


https://reviews.llvm.org/D152113

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/X86/is_fpclass.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152113.528246.patch
Type: text/x-patch
Size: 4781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230604/2b86836c/attachment.bin>


More information about the llvm-commits mailing list