DAG: Fix isKnownNeverNaN for basic non-sNaN cases
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Aug 2018 21:19:22 +0000 (21:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Aug 2018 21:19:22 +0000 (21:19 +0000)
commit25e51540e1c59206b7620973e48a38ac93f15eb4
tree4b6f9277e64e59dd1d22b3042c89ab48f7ecdd08
parentd5f56c5979d697f1c9eabf0bdfd882baac55f402
DAG: Fix isKnownNeverNaN for basic non-sNaN cases

fadd/fsub/fmul need to worry about infinities as well
as fdiv.

llvm-svn: 340085
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/AArch64/known-never-nan.ll [new file with mode: 0644]