[LibCallSimplifier] don't allow sqrt transform unless all ops are unsafe
authorSanjay Patel <spatel@rotateright.com>
Mon, 11 Jan 2016 22:50:36 +0000 (22:50 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 11 Jan 2016 22:50:36 +0000 (22:50 +0000)
commitbe014a6bcf10c957eab4e6bba3db59045186e309
tree75d482ded6a5c3721dd4dfb98cbd6d729d1e26ae
parent2ab07ac8fe545b0f65c6981e62384572acae8378
[LibCallSimplifier] don't allow sqrt transform unless all ops are unsafe

Fix the FIXME added with:
http://reviews.llvm.org/rL257400

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/fast-math.ll