Go to file
Sanjay Patel 2d477e59e8 [InstCombine] fold add(zext(xor X, C), C) --> sext X when C is INT_MIN in the source type
The pattern may look more obviously like a sext if written as:

  define i32 @g(i16 %x) {
    %zext = zext i16 %x to i32
    %xor = xor i32 %zext, 32768
    %add = add i32 %xor, -32768
    ret i32 %add
  }

We already have that fold in visitAdd().

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

llvm-svn: 276035
2016-07-19 22:09:34 +00:00
clang [SemaObjC] Improve ObjCDictionaryLiteral and ObjCArryLiteral diagnostics 2016-07-19 20:21:18 +00:00
clang-tools-extra cppcoreguidelines-pro-bounds-constant-array-index: ignore implicit constructor 2016-07-19 17:02:54 +00:00
compiler-rt [Profile] Introduce lit test vars for IR based instrumentation 2016-07-19 21:55:55 +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 Fix undefined behavior in __tree 2016-07-19 17:56:20 +00:00
libcxxabi Attempt to bring peace to -Werror buildbots. 2016-07-19 20:35:09 +00:00
libunwind libunwind: sync some coments with NetBSD's version 2016-07-19 17:28:38 +00:00
lld Fix build with gcc 6. 2016-07-19 12:33:46 +00:00
lldb Don't check the value of the unset variables on iOS 2016-07-19 21:50:39 +00:00
llgo Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
llvm [InstCombine] fold add(zext(xor X, C), C) --> sext X when C is INT_MIN in the source type 2016-07-19 22:09:34 +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 Set up arcconfig for parallel-libs project 2016-07-18 17:26:26 +00:00
polly GPGPU: Bail out of scops with hoisted invariant loads 2016-07-19 15:56:25 +00:00