[InstSimplify] Fold away ord/uno fcmps when nnan is present.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 10 Jul 2015 14:02:02 +0000 (14:02 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 10 Jul 2015 14:02:02 +0000 (14:02 +0000)
commitb0927bee8e987b723315db4e0c9085c40837948d
tree804ad011292ebccd8a55746d5bb93f35651d2113
parentee0d992b07d282ca217ba158a1cb5671ccdc0ced
[InstSimplify] Fold away ord/uno fcmps when nnan is present.

This is important to fold away the slow case of complex multiplies
emitted by clang.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241911 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstSimplify/floating-point-compare.ll