[InstCombine] add nnan requirement for sqrt(x) * sqrt(y) -> sqrt(x*y)
authorSanjay Patel <spatel@rotateright.com>
Sun, 18 Mar 2018 14:32:54 +0000 (14:32 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 18 Mar 2018 14:32:54 +0000 (14:32 +0000)
commit63b1028953cf688c687fc5f3168ab948a50fcc54
treecddd88adecca28ce4a8069b5cc6a4a3c9ad18cee
parent95ec4a4dfe4655044a5f689f792e5394d73ea248
[InstCombine] add nnan requirement for sqrt(x) * sqrt(y) -> sqrt(x*y)

This is similar to D43765.

llvm-svn: 327797
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fmul-sqrt.ll