Davide Italiano
873219c406
[SimplifyLibCalls] Restore the old behaviour, emit a libcall.
...
Hal pointed out that the semantic of our intrinsic and the libc
call are slightly different. Add a comment while I'm here to
explain why we can't emit an intrinsic. Thanks Hal!
llvm-svn: 278200
2016-08-10 06:33:32 +00:00
Davide Italiano
e3b916d164
[SimplifyLibCalls] Emit sqrt intrinsic instead of a libcall.
...
llvm-svn: 277972
2016-08-08 03:23:01 +00:00
Sanjay Patel
53ba88dbb0
[LibCallSimplifier] use instruction-level fast-math-flags to transform pow(x, 0.5) calls
...
Also, propagate the FMF to the newly created sqrt() call.
llvm-svn: 257503
2016-01-12 19:06:35 +00:00
Davide Italiano
c5cedd195a
[SimplifyLibCalls] New trick: pow(x, 0.5) -> sqrt(x) under -ffast-math.
...
Differential Revision: http://reviews.llvm.org/D14466
llvm-svn: 253521
2015-11-18 23:21:32 +00:00