Go to file
Sanjay Patel 848309da7c Handle sqrt() shrinking in SimplifyLibCalls like any other call
This patch removes a chunk of special case logic for folding 
(float)sqrt((double)x) -> sqrtf(x)
in InstCombineCasts and handles it in the mainstream path of SimplifyLibCalls.

No functional change intended, but I loosened the restriction on the existing
sqrt testcases to allow for this optimization even without unsafe-fp-math because
that's the existing behavior.

I also added a missing test case for not shrinking the llvm.sqrt.f64 intrinsic
in case the result is used as a double.

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

llvm-svn: 220514
2014-10-23 21:52:45 +00:00
clang clang-format: Fix incorrect space after "<". 2014-10-23 20:22:22 +00:00
clang-tools-extra Add flag --enable-check-profile to clang-tidy. 2014-10-23 17:23:20 +00:00
compiler-rt Disabling some MSVC warnings that are of questionable value. Note, these are disabled by default in LLVM as well, so there is precedence. 2014-10-23 20:39:58 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc r600: Fix get_work_dim range metadata 2014-10-22 14:32:53 +00:00
libcxx [libcxx] XFAIL all currently failing libc++ tests for linux. 2014-10-23 21:17:36 +00:00
libcxxabi Only link the tests against -ldl on linux 2014-10-23 20:44:25 +00:00
lld [PECOFF] Fix /nodefaultlib option. 2014-10-23 20:42:07 +00:00
lldb This test case should not rely on stepping behavior because that might chance due to inlining. Set breakpoints where you want them instead. Fixes rdar://18724175 2014-10-23 21:35:18 +00:00
llvm Handle sqrt() shrinking in SimplifyLibCalls like any other call 2014-10-23 21:52:45 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Fix typo 2014-10-22 23:26:48 +00:00