OSDN Git Service

[InstSimplify] use isKnownNeverNaN to fold more fcmp ord/uno
authorSanjay Patel <spatel@rotateright.com>
Tue, 21 Aug 2018 14:45:13 +0000 (14:45 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 21 Aug 2018 14:45:13 +0000 (14:45 +0000)
commit77028e31e5f85d9b79baaafe01abbbb4261a7015
treea196a4a4a74c8a4a099ac006b903d6c90d1de70a
parent099d4ece4fbd091ca14c9a39a95c01c42d829b1d
[InstSimplify] use isKnownNeverNaN to fold more fcmp ord/uno

Remove duplicate tests from InstCombine that were added with
D50582. I left negative tests there to verify that nothing
in InstCombine tries to go overboard. If isKnownNeverNaN is
improved to handle the FP binops or other cases, we should
have coverage under InstSimplify, so we could remove more
duplicate tests from InstCombine at that time.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340279 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstCombine/known-never-nan.ll
test/Transforms/InstSimplify/known-never-nan.ll