[PATCH] D49662: DAG: Enhance isKnownNeverNaN

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 23 04:13:53 PDT 2018


arsenm created this revision.
arsenm added a reviewer: scanon.
Herald added subscribers: tpr, nhaehnle, wdng.

Add a parameter for testing specifically for
sNaNs - at least one instruction pattern on AMDGPU
needs to check specifically for this.

      

Also handle more cases, and add a target hook
for custom nodes, similar to the hooks for known
bits.

I'll merge https://reviews.llvm.org/D49561 into this later


https://reviews.llvm.org/D49662

Files:
  include/llvm/CodeGen/SelectionDAG.h
  include/llvm/CodeGen/TargetLowering.h
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/clamp.ll
  test/CodeGen/AMDGPU/fmed3.ll
  test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll
  test/CodeGen/AMDGPU/known-never-snan.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49662.156742.patch
Type: text/x-patch
Size: 30307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180723/41c5a3df/attachment.bin>


More information about the llvm-commits mailing list