Go to file
Artur Gainullin d928201ac5 Eliminate a bitwise 'not' op of 'not' min/max by inverting the min/max.
Bitwise 'not' of the min/max could be eliminated in the pattern:

%notx = xor i32 %x, -1
%cmp1 = icmp sgt[slt/ugt/ult] i32 %notx, %y
%smax = select i1 %cmp1, i32 %notx, i32 %y
%res = xor i32 %smax, -1

https://rise4fun.com/Alive/lCN

Reviewers: spatel

Reviewed by: spatel

Subscribers: a.elovikov, llvm-commits

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

llvm-svn: 329791
2018-04-11 10:29:37 +00:00
clang [Tooling] Correct the "-std" compile command option. 2018-04-11 09:18:18 +00:00
clang-tools-extra [clang-tidy] fix buildbots from hicpp-signed-bitwise 2018-04-11 10:22:25 +00:00
compiler-rt [XRay][compiler-rt] Fix osx-based builds 2018-04-11 05:16:11 +00:00
debuginfo-tests [Darwin] Specify DWARF 2/4 when running apple accelerator tests. 2018-02-26 20:56:45 +00:00
libclc hypot: Port from amd builtins 2018-04-10 00:11:58 +00:00
libcxx [libcxx] Set ABI version 2 as default for Fuchsia 2018-04-11 01:06:28 +00:00
libcxxabi [CFI] Disable CFI checks for __cxa_decrement_exception_refcount 2018-04-09 22:11:28 +00:00
libunwind [cmake] Remove duplicate command line options from build 2018-04-05 20:27:50 +00:00
lld [ELF] - Reorder local symbols. 2018-04-11 09:24:27 +00:00
lldb Convert an absolute to a group relative reference for TestOptionArgParser.cpp. 2018-04-10 19:29:37 +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 Eliminate a bitwise 'not' op of 'not' min/max by inverting the min/max. 2018-04-11 10:29:37 +00:00
openmp [OpenMP] Remove extra warning when we build 2018-04-10 15:28:31 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [CodeGen] Allow undefined loads in statement instances outside context. 2018-04-10 01:20:51 +00:00
README.md Add an svn project to contain the files that appear at the root of the 2017-10-19 21:09:49 +00:00

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.