1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/test
Sanjay Patel 5c904052a0 [InstSimplify] add folds for constant mask of value shifted by constant
We would eventually catch these via demanded bits and computing known bits in InstCombine,
but I think it's better to handle the simple cases as soon as possible as a matter of efficiency.

This fold allows further simplifications based on distributed ops transforms. eg:
  %a = lshr i8 %x, 7
  %b = or i8 %a, 2
  %c = and i8 %b, 1

InstSimplify can directly fold this now:
  %a = lshr i8 %x, 7

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

llvm-svn: 303213
2017-05-16 21:51:04 +00:00
..
Analysis [SCEV] Fix sorting order for AddRecExprs 2017-05-16 07:27:06 +00:00
Assembler [IR] Allow attributes with global variables 2017-05-11 12:28:08 +00:00
Bindings
Bitcode Add "REQUIRES:" to the last few tests that use target specific intrinsics 2017-05-15 22:15:22 +00:00
BugPoint
CodeGen Re-commit r302678, fixing PR33053. 2017-05-16 21:29:22 +00:00
DebugInfo [llvm-pdbdump] Add the option to sort functions and data. 2017-05-14 01:13:40 +00:00
Examples
ExecutionEngine
Feature Test for r303197 2017-05-16 20:53:27 +00:00
FileCheck
Instrumentation MSan: Mark MemorySanitizer tests that use x86 intrinsics as REQUIRES: x86 2017-05-13 16:24:38 +00:00
Integer
JitListener
LibDriver
Linker Remap metadata attached to global variables. 2017-05-04 23:29:39 +00:00
LTO Add support for handling ifuncs to GlobalValue::getBaseObject 2017-05-15 18:28:29 +00:00
MC AArch64: diagnose unrecognized features in .cpu directive. 2017-05-15 19:42:15 +00:00
Object Add support for handling ifuncs to GlobalValue::getBaseObject 2017-05-15 18:28:29 +00:00
ObjectYAML [WebAssembly] Improve libObject support for wasm imports and exports 2017-05-09 23:48:41 +00:00
Other [PM] Add ProfileSummaryAnalysis as a required pass in the new pipeline. 2017-05-04 16:58:45 +00:00
SymbolRewriter
TableGen [TableGen] Add EncoderMethod to RegisterOperand 2017-05-15 10:13:07 +00:00
ThinLTO/X86 Remove line and file from DINamespace. 2017-04-28 22:25:46 +00:00
tools [llvm-pdbdump] Add the option to sort functions and data. 2017-05-14 01:13:40 +00:00
Transforms [InstSimplify] add folds for constant mask of value shifted by constant 2017-05-16 21:51:04 +00:00
Unit [Lit] Fix to prevent creation of "%SystemDrive%" directory on Windows. 2017-05-08 08:55:38 +00:00
Verifier Make it illegal for two Functions to point to the same DISubprogram 2017-05-09 19:47:37 +00:00
YAMLParser
.clang-format
CMakeLists.txt Add a dependency from llvm/test to llvm-cvtres. 2017-04-21 20:45:11 +00:00
lit.cfg
lit.site.cfg.in
TestRunner.sh