OSDN Git Service

[InstSimplify] loosen FMF for sqrt(X) * sqrt(X) --> X
authorSanjay Patel <spatel@rotateright.com>
Sun, 18 Mar 2018 14:12:25 +0000 (14:12 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 18 Mar 2018 14:12:25 +0000 (14:12 +0000)
commitd65aba275a97034bf478a406f9965632b15c7f4d
tree5d2f20850b40e4225634e236c8f953e73533928a
parentd33d1f5f75d73c1d0518016dfb92837182825624
[InstSimplify] loosen FMF for sqrt(X) * sqrt(X) --> X

As shown in the code comment, we don't need all of 'fast',
but we do need reassoc + nsz + nnan.

Differential Revision: https://reviews.llvm.org/D43765

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