llvm-project/llvm/test
David Bolvansky dbcdad51ff [InstCombine] (1 << (C - x)) -> ((1 << C) >> x) if C is bitwidth - 1
Summary:
```
%a = sub i32 31, %x
%r = shl i32 1, %a
  =>
%d = shl i32 1, 31
%r = lshr i32 %d, %x

Done: 1
Optimization is correct!
```

https://rise4fun.com/Alive/btZm

Reviewers: spatel, lebedev.ri, nikic

Reviewed By: lebedev.ri

Subscribers: llvm-commits

Tags: #llvm

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

llvm-svn: 364073
2019-06-21 16:25:32 +00:00
..
Analysis [LICM & MSSA] Fixed test to run only with assertions enabled as it uses -debug-only 2019-06-21 04:49:40 +00:00
Assembler hwasan: Add a tag_offset DWARF attribute to instrumented stack variables. 2019-06-17 23:39:41 +00:00
Bindings
Bitcode [SVE][IR] Scalable Vector IR Type with pr42210 fix 2019-06-18 10:11:56 +00:00
BugPoint
CodeGen [RISCV] Add RISCV-specific TargetTransformInfo 2019-06-21 13:36:09 +00:00
DebugInfo Store a pointer to the return value in a static alloca and let the debugger use that 2019-06-20 17:15:21 +00:00
Demangle llvm-undname: Correctly demangle vararg parameters 2019-06-04 19:10:08 +00:00
Examples
ExecutionEngine [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
Feature
FileCheck [FileCheck] Stop qualifying expressions as numeric 2019-06-19 23:47:24 +00:00
Instrumentation [profile] Solaris ld supports __start___llvm_prof_data etc. labels 2019-06-20 21:27:06 +00:00
Integer
JitListener [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
LTO [ThinLTO]LTO]Legacy] Fix dependent libraries support by adding querying of the IRSymtab 2019-06-12 11:07:56 +00:00
Linker Reapply: IR: add optional type to 'byval' function parameters 2019-05-30 18:48:23 +00:00
MC [ARM] Add MVE 64-bit GPR <-> vector move instructions. 2019-06-21 13:17:23 +00:00
MachineVerifier Fix GlobalISel MachineVerifier tests. NFC. 2019-06-19 18:15:45 +00:00
Object [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
ObjectYAML [yaml2obj][MachO] Don't fill dummy data for virtual sections 2019-06-17 02:07:20 +00:00
Other Update LLVM test to not check for the EliminateAvailableExternallyPass 2019-06-20 20:51:58 +00:00
SafepointIRVerifier
Support [llvm-dwarfdump] Remove unnecessary explicit -h behaviour 2019-06-21 11:22:20 +00:00
SymbolRewriter
TableGen
ThinLTO/X86 [Remarks] Extend -fsave-optimization-record to specify the format 2019-06-17 16:06:00 +00:00
Transforms [InstCombine] (1 << (C - x)) -> ((1 << C) >> x) if C is bitwidth - 1 2019-06-21 16:25:32 +00:00
Unit
Verifier Add debug location verification for !llvm.loop attachments. 2019-06-18 20:09:09 +00:00
YAMLParser
tools [llvm-objcopy] - Get rid of dynrel.elf precompiled binary from inputs. 2019-06-21 14:15:15 +00:00
.clang-format
CMakeLists.txt [tools] Introduce llvm-lipo 2019-05-28 23:22:12 +00:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in