Go to file
Craig Topper fc5283092b [InstCombine] In foldSelectICmpAnd, if we need to to truncate from the 'and' type to the 'select' type, do it after shifting right instead of just bailing.
Previously we were always trying to emit the zext or truncate before any shift. This meant if the 'and' mask was larger than the size of the truncate we would skip the transformation.

Now we shift the result of the and right first leaving the bit within the range of the truncate.

This matches what we are doing in foldSelectICmpAndOr for the same problem.

llvm-svn: 310159
2017-08-05 01:45:17 +00:00
clang [ODRHash] Treat some non-templated classes as templated. 2017-08-05 00:54:19 +00:00
clang-tools-extra [clang-tidy] Added clang-tidy test cases related to rL310095 2017-08-04 19:01:56 +00:00
compiler-rt Add NetBSD support in sanitizer_linux_libcdep.cc 2017-08-04 22:32:46 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc configure.py: Make python3 friendly 2017-08-02 15:00:59 +00:00
libcxx [libcxx] [test] Untabify stringstream.cons/string.pass.cpp. NFC. 2017-08-05 00:44:27 +00:00
libcxxabi [demangler] Fix another bug found by oss-fuzz in r309340 2017-08-01 02:38:41 +00:00
libunwind Partial fix for PR33858 2017-07-26 18:13:57 +00:00
lld Move File from SymbolBody to Symbol. 2017-08-04 22:31:42 +00:00
lldb Cut and paste error from r23162. 2017-08-03 19:38:38 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [InstCombine] In foldSelectICmpAnd, if we need to to truncate from the 'and' type to the 'select' type, do it after shifting right instead of just bailing. 2017-08-05 01:45:17 +00:00
openmp Exclude version symbols for static libomp 2017-08-02 20:10:00 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Refactor ZoneAlgorithm into ZoneAlgo.cpp. NFC. 2017-08-04 22:51:23 +00:00