OSDN Git Service

[InstSimplify] Allow folding of fdiv X, X with just NaNs ignored
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 16 Jun 2015 14:57:29 +0000 (14:57 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 16 Jun 2015 14:57:29 +0000 (14:57 +0000)
commit8a8bb45a76b221b06cc9fe0f9067afca10474d72
tree2d7ac11d3c418393424e78420fb8b5abcdc9c60d
parentcc73f106483f3bd8af7bf9a2bec76ed5206d38f9
[InstSimplify] Allow folding of fdiv X, X with just NaNs ignored

Any combination of +-inf/+-inf is NaN so it's already ignored with
nnan and we can skip checking for ninf. Also rephrase logic in comments
a bit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239821 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/fast-math.ll