Go to file
Sanjay Patel 50c82c4395 [InstCombine] add fold for icmp with or mask of low bits (PR32542)
We already have these 'and' folds:

// X & -C == -C -> X >  u ~C
// X & -C != -C -> X <= u ~C
//   iff C is a power of 2

...but we were missing the 'or' siblings.

http://rise4fun.com/Alive/n6

This should improve:
https://bugs.llvm.org/show_bug.cgi?id=32524
...but there are 2 or more other pieces to fix still.

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

llvm-svn: 299570
2017-04-05 17:57:05 +00:00
clang Revert "[analyzer] Add a modular constraint system to the CloneDetector" 2017-04-05 15:06:17 +00:00
clang-tools-extra Fix -Wmissing-field-initializer warnings to unbreak the -Werror build 2017-04-05 16:50:19 +00:00
compiler-rt Avoid calling basename to compute xdynamiclib_namespec. 2017-04-04 22:33:02 +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 math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Fix more -Wshadow warnings introduced by recent Clang change 2017-04-04 02:54:27 +00:00
libcxxabi Fix exception address alignment test for EHABI 2017-04-04 14:03:54 +00:00
libunwind Try to trigger the new docs builder. NFC 2017-04-03 19:23:11 +00:00
lld Do not use relocateOne() to just write 32-bit words. 2017-04-05 16:33:44 +00:00
lldb Fix a typo introduce in r299200. 2017-04-05 09:31:43 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm [InstCombine] add fold for icmp with or mask of low bits (PR32542) 2017-04-05 17:57:05 +00:00
openmp Test cancellation_for_sections.c expectedly fails on GCC 2017-04-04 14:39:52 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Add two Polly images 2017-04-05 11:50:31 +00:00