guard fsqrt with fmf sub flags
authorMichael Berg <michael_c_berg@apple.com>
Wed, 6 Jun 2018 18:47:55 +0000 (18:47 +0000)
committerMichael Berg <michael_c_berg@apple.com>
Wed, 6 Jun 2018 18:47:55 +0000 (18:47 +0000)
commitcc1c4b691230de5ed85fff9e2578367580407d6b
treec9e239d298135d2781bb8c09bf8a30c76b869d34
parent11c99ed05f7a5046c924126c1abcf9334a172bbc
guard fsqrt with fmf sub flags

Summary:
This change uses fmf subflags to guard optimizations as well as unsafe. These changes originated from D46483.
It contains only context for fsqrt.

Reviewers: spatel, hfinkel, arsenm

Reviewed By: spatel

Subscribers: hfinkel, wdng, andrew.w.kaylor, wristow, efriedma, nemanjai

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

llvm-svn: 334113
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/PowerPC/fmf-propagation.ll
llvm/test/CodeGen/X86/fmf-flags.ll
llvm/test/CodeGen/X86/sqrt-fastmath-mir.ll