Go to file
Craig Topper 6b1b630a98 [SelectionDAG] Use known ones to provide a better bound for the known zeros for CTTZ/CTLZ operations.
This is the SelectionDAG version of D32521. If know where at least one 1 is located in the input to these intrinsics we can place an upper bound on the number of bits needed to represent the count and thus increase the number of known zeros in the output.

I think we can also refine this further for CTTZ_UNDEF/CTLZ_UNDEF by assuming that the answer will never be BitWidth. I've left this out for now because it caused other test failures across multiple targets. Usually because of turning ADD into OR based on this new information.

I'll fix CTPOP in a future patch.

Differential Revision: https://reviews.llvm.org/D32692

llvm-svn: 301806
2017-05-01 16:08:06 +00:00
clang Relax testcase to fix a PS4 buildbot failure. 2017-05-01 15:49:40 +00:00
clang-tools-extra [clang-tidy] Fix naming convention in modernize-use-emplace 2017-04-30 21:12:56 +00:00
compiler-rt [powerpc] deactivate flakey tests on powerpc64le 2017-05-01 13:56:04 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Add missing acquire_load to call_once overload. 2017-04-23 16:58:48 +00:00
libcxxabi Fix PR25874 - cxa_thread_atexit_test.pass.cpp has an incorrect XFAIL. 2017-04-20 23:40:35 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld Fix comments. 2017-04-30 20:58:20 +00:00
lldb Public headers need to be public. 2017-04-28 21:03:18 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm [SelectionDAG] Use known ones to provide a better bound for the known zeros for CTTZ/CTLZ operations. 2017-05-01 16:08:06 +00:00
openmp [OpenMP] libomptarget: test correction for use with OpenMP 4.5 2017-04-27 18:54:00 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [CMake] Move PollyCore to Polly project folder. 2017-04-30 21:07:05 +00:00