1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test
Sanjay Patel a8eaa856b6 [InstCombine] fold lshr (sext X), C1 --> zext (lshr X, C2)
This was discussed in D33338. We have larger pattern-matching ending in a truncate that 
we can reduce or remove by handling these smaller patterns first. Further motivation is 
that narrower shift ops are easier for value tracking and zext is better than sext.

http://rise4fun.com/Alive/rhh

Name: boolshift
%sext = sext i1 %x to i8
%r = lshr i8 %sext, 7

=>

%r = zext i1 %x to i8

Name: noboolshift
%sext = sext i3 %x to i8
%r = lshr i8 %sext, 7

=>

%sh = lshr i3 %x, 2
%r = zext i3 %sh to i8

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

llvm-svn: 304939
2017-06-07 20:32:08 +00:00
..
Analysis [LVI Printer] Rely on the LVI analysis functions rather than the LVI cache 2017-06-06 19:25:31 +00:00
Assembler
Bindings [LLVM-C] [OCaml] Expose Type::subtypes. 2017-06-05 11:49:52 +00:00
Bitcode [X86] Replace 'REQUIRES: x86' in tests with 'REQUIRES: x86-registered-target' which seems to be the correct way to make them run on an x86 build. 2017-06-04 08:21:58 +00:00
BugPoint
CodeGen [Hexagon] Generate 'inbounds' GEPs in HexagonCommonGEP 2017-06-07 20:04:33 +00:00
DebugInfo [DWARF] Adding support for the DWARF v5 string offsets table (consumer/reader part only). 2017-06-06 01:22:34 +00:00
Examples
ExecutionEngine [RuntimeDyld, PowerPC] Fix check for external symbols when detecting reloction overflow 2017-05-23 14:51:18 +00:00
Feature Add constrained intrinsics for some libm-equivalent operations 2017-05-25 21:31:00 +00:00
FileCheck [FileCheck] Don't scan past the closing CHECK-DAG for CHECK-NOT inside CHECK-DAG 2017-06-07 12:06:45 +00:00
Instrumentation Revert "[sanitizer-coverage] one more flavor of coverage: -fsanitize-coverage=inline-8bit-counters. Experimental so far, not documenting yet." 2017-06-05 07:35:52 +00:00
Integer
JitListener
LibDriver
Linker [Linker] Remove llc usage from link-arm-and-thumb.ll test case. 2017-06-07 09:59:22 +00:00
LTO [Linker] Remove warning when linking ARM and Thumb IR modules. 2017-06-07 09:17:01 +00:00
MC [AMDGPU][MC] Corrected error message for s_waitcnt helpers 2017-06-07 16:08:02 +00:00
Object test: fix hexagon build 2017-06-05 21:45:25 +00:00
ObjectYAML
Other [PM/ThinLTO] Port the ThinLTO pipeline (both components) to the new PM. 2017-06-01 11:39:39 +00:00
SymbolRewriter
TableGen [globalisel][tablegen] Add support for (set $dst, 1) and test X86's OptForSize predicate. 2017-05-23 19:33:16 +00:00
ThinLTO/X86 Move summary dead stripping before regular LTO. 2017-06-02 18:24:17 +00:00
tools Introduce -brief command line option to llvm-dwarfdump 2017-06-06 23:28:45 +00:00
Transforms [InstCombine] fold lshr (sext X), C1 --> zext (lshr X, C2) 2017-06-07 20:32:08 +00:00
Unit
Verifier Add constrained intrinsics for some libm-equivalent operations 2017-05-25 21:31:00 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm/test/Transforms/Util/PredicateInfo/ 2017-06-07 00:22:52 +00:00
lit.site.cfg.in Introduce the new feature "abi-breaking-checks" to satisfy -reverse-iterate in llvm/test/Transforms/Util/PredicateInfo/ 2017-06-07 00:22:52 +00:00
TestRunner.sh