[LibCallSimplifier] use instruction-level fast-math-flags to transform pow(x, 0.5...
authorSanjay Patel <spatel@rotateright.com>
Tue, 12 Jan 2016 19:06:35 +0000 (19:06 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 12 Jan 2016 19:06:35 +0000 (19:06 +0000)
commit44d6fd556f9e7753d5413bb0ec7b07e98179f4f8
treec890342a16303df30dd52d7a228051dcc5d1eb0f
parent05e78944a194041bae4f719765c03c31b65f0062
[LibCallSimplifier] use instruction-level fast-math-flags to transform pow(x, 0.5) calls

Also, propagate the FMF to the newly created sqrt() call.

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