[SimplifyLibCalls] New trick: pow(x, 0.5) -> sqrt(x) under -ffast-math.
authorDavide Italiano <davide@freebsd.org>
Wed, 18 Nov 2015 23:21:32 +0000 (23:21 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 18 Nov 2015 23:21:32 +0000 (23:21 +0000)
commitb8dd4a3d670ffb4285a9e2329cdc9880be83800e
tree801fabf46100361014e93cdf3a57e2fa67d6e33c
parent3fe74b8026b51d64cd15149234bcadffcfe1d3b3
[SimplifyLibCalls] New trick: pow(x, 0.5) -> sqrt(x) under -ffast-math.

Differential Revision: http://reviews.llvm.org/D14466

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253521 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyLibCalls.cpp
test/Transforms/InstCombine/pow-sqrt.ll [new file with mode: 0644]