Go to file
Sanjay Patel a3bfb4e313 [InstSimplify] recognize trunc + icmp sgt/slt variants of select simplifications (PR28466)
rL245171 exposed a hole in InstSimplify that manifested in a strange way in PR28466:
https://llvm.org/bugs/show_bug.cgi?id=28466

It's possible to use trunc + icmp sgt/slt in place of an and + icmp eq/ne, so we need to
recognize that pattern to eliminate selects that are choosing between some value and some
bitmasked version of that value.

Note that there is significant room for improvement (refactoring) and enhancement (more
patterns, possibly in InstCombine rather than here).

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

llvm-svn: 276341
2016-07-21 21:26:45 +00:00
clang Disable a flaky test on Windows that uses "echo >>" 2016-07-21 21:07:47 +00:00
clang-tools-extra [clang-tidy] Avoid duplicated DenseMap lookup. 2016-07-21 14:13:45 +00:00
compiler-rt [compiler-rt] Add support for relative offset adjustment in interception 2016-07-21 21:08:54 +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 amdgpu: Use right builtn for rsq 2016-07-19 19:02:01 +00:00
libcxx Remove FIXME for feature test macro 2016-07-21 17:34:28 +00:00
libcxxabi Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
libunwind [libunwind] Properly align _Unwind_Exception. 2016-07-20 23:56:42 +00:00
lld Really fix invalid EhSectionPiece access. 2016-07-21 21:15:32 +00:00
lldb Add check for non-null log instance in PlatformAndroid. 2016-07-21 17:03:25 +00:00
llgo Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
llvm [InstSimplify] recognize trunc + icmp sgt/slt variants of select simplifications (PR28466) 2016-07-21 21:26:45 +00:00
openmp http://reviews.llvm.org/D22134: Implementation of OpenMP 4.5 nonmonotonic schedule modifier 2016-07-11 10:44:57 +00:00
parallel-libs Add .clang-format to parallel-libs 2016-07-20 17:49:55 +00:00
polly GPGPU: generate code for ScopStatements 2016-07-21 13:15:59 +00:00