llvm-6502/lib
David Majnemer 59b11c415e Optimize icmp involving addition better
Allows LLVM to optimize sequences like the following:

%add = add nsw i32 %x, 1
%cmp = icmp sgt i32 %add, %y

into:

%cmp = icmp sge i32 %x, %y

as well as:

%add1 = add nsw i32 %x, 20
%add2 = add nsw i32 %y, 57
%cmp = icmp sge i32 %add1, %add2

into:

%add = add nsw i32 %y, 37
%cmp = icmp sle i32 %cmp, %x


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179316 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-11 20:05:46 +00:00
..
Analysis RegionInfo: Add helpers to replace entry/exit recursively 2013-04-10 06:54:49 +00:00
Archive
AsmParser Rationalize the formatting of these case labels. Having two sorted 2013-04-09 19:46:46 +00:00
Bitcode
CodeGen Add braces around || in && to pacify GCC. 2013-04-11 11:57:01 +00:00
DebugInfo Rename the C function to create a SLPVectorizerPass to something sane and expose it in the header file. 2013-04-11 11:36:36 +00:00
ExecutionEngine Respect Addend when processing MCJIT relocations to local/global symbols. 2013-04-05 13:29:04 +00:00
IR
IRReader
Linker
MC MC: Support COFF image-relative MCSymbolRefs 2013-04-10 23:28:17 +00:00
Object Revert my last two commits while I debug what is wrong in a big endian host. 2013-04-11 17:46:10 +00:00
Option
Support Add a function to check if an argument list is too long. 2013-04-11 14:06:34 +00:00
TableGen
Target [mips] Custom-lower i64 MULHS and MULHU nodes. Remove the code which selects 2013-04-11 19:29:26 +00:00
Transforms Optimize icmp involving addition better 2013-04-11 20:05:46 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile