llvm-project/llvm/test
Sanjoy Das c86c162a58 Re-apply r245635, "[InstCombine] Transform A & (L - 1) u< L --> L != 0"
The original checkin was buggy, this change has a fix.

Original commit message:

[InstCombine] Transform A & (L - 1) u< L --> L != 0

Summary:

This transform is never a pessimization at the IR level (since it
replaces an `icmp` with another), and has potentiall payoffs:

 1. It may make the `icmp` fold away or become loop invariant.
 2. It may make the `A & (L - 1)` computation dead.

This shows up in Java, in range checks generated by array accesses of
the form `a[i & (a.length - 1)]`.

Reviewers: reames, majnemer

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D12210

llvm-svn: 245753
2015-08-21 22:22:37 +00:00
..
Analysis Fix how DependenceAnalysis calls delinearization 2015-08-19 02:56:36 +00:00
Assembler [IR] Add token types 2015-08-14 05:09:07 +00:00
Bindings [OCaml] Do not use -warn-error in tests. 2015-07-17 17:33:23 +00:00
Bitcode [test] Testing write access to llvm 2015-08-14 17:42:50 +00:00
BugPoint Fix typo in comment 2015-07-26 11:37:05 +00:00
CodeGen MIR Serialization: Serialize the pointer IR expression values in the machine 2015-08-21 21:54:12 +00:00
DebugInfo delete more dead code from this testcase. 2015-08-21 00:02:04 +00:00
ExecutionEngine [mips] Expand JAL instructions when PIC is enabled. 2015-08-18 16:18:09 +00:00
Feature [IR] Give catchret an optional 'return value' operand 2015-08-15 02:46:08 +00:00
FileCheck
Instrumentation [msan] Fix handling of musttail calls. 2015-08-14 22:03:50 +00:00
Integer
JitListener DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
LTO Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
LibDriver Add support for producing thin archives in llvm-lib. 2015-07-17 16:01:11 +00:00
Linker Make DW_AT_[MIPS_]linkage_name optional, and off by default for SCE. 2015-08-11 21:36:45 +00:00
MC Fix symbol value computation when part of the expression is weak. 2015-08-20 16:18:30 +00:00
Object Add a test showing that objdump (and so ObjectFIle) can handle shndx. 2015-08-10 21:00:15 +00:00
Other Update test suite to make "ninja check" succeed without native backend builtin 2015-08-04 06:32:54 +00:00
SymbolRewriter
TableGen TableGen: Support folding casts from bits to int 2015-07-31 01:12:06 +00:00
Transforms Re-apply r245635, "[InstCombine] Transform A & (L - 1) u< L --> L != 0" 2015-08-21 22:22:37 +00:00
Unit
Verifier [IR] Add token types 2015-08-14 05:09:07 +00:00
YAMLParser
tools TransformUtils: Introduce module splitter. 2015-08-21 02:48:20 +00:00
.clang-format
CMakeLists.txt TransformUtils: Introduce module splitter. 2015-08-21 02:48:20 +00:00
Makefile
Makefile.tests
TestRunner.sh
lit.cfg TransformUtils: Introduce module splitter. 2015-08-21 02:48:20 +00:00
lit.site.cfg.in Improve lit "native" feature to check if the native backend is builtin 2015-08-04 06:32:31 +00:00