[PATCH] D49561: AMDGPU: Try to make isKnownNeverSNan more accurate

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 19 11:14:51 PDT 2018


arsenm created this revision.
arsenm added reviewers: scanon, rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

If I'm interpreting the standard correctly, everything
here was essentially incorrect.

     

Saying no if fp exceptions are not enabled, then no value is an snan is incorrect.
A loaded value could still be an snan. If FP exceptions
are enabled, certain operations will produce an snan.
Common operations won't produce an snan, and will quiet
an snan input.

Try to get the set of operations that would raise an exception if
they were to produce an snan more correct.


https://reviews.llvm.org/D49561

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/clamp.ll
  test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
  test/CodeGen/AMDGPU/fmed3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49561.156324.patch
Type: text/x-patch
Size: 8345 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180719/14ce16de/attachment.bin>


More information about the llvm-commits mailing list