llvm-project/llvm/test
Sanjay Patel 4a47f5f550 [InstCombine] fold adds of constants separated by sext/zext
This is part of a transform that may be done in the backend:
D13757
...but it should always be beneficial to fold this sooner in IR
for all targets.

https://rise4fun.com/Alive/vaiW

  Name: sext add nsw
  %add = add nsw i8 %i, C0
  %ext = sext i8 %add to i32
  %r = add i32 %ext, C1
  =>
  %s = sext i8 %i to i32
  %r = add i32 %s, sext(C0)+C1

  Name: zext add nuw
  %add = add nuw i8 %i, C0
  %ext = zext i8 %add to i16
  %r = add i16 %ext, C1
  =>
  %s = zext i8 %i to i16
  %r = add i16 %s, zext(C0)+C1

llvm-svn: 355118
2019-02-28 19:05:26 +00:00
..
Analysis [MemorySSA] Make insertDef insert corresponding phi nodes. 2019-02-27 22:20:22 +00:00
Assembler Move some llvm-mc tests where they belong 2019-02-05 20:12:48 +00:00
Bindings [LLVM-C] Add Bindings to GlobalIFunc 2019-02-05 18:05:44 +00:00
Bitcode Fix auto-upgrade for the new parameter to llvm.objectsize 2019-02-12 21:55:38 +00:00
BugPoint
CodeGen [X86] Add test case that was supposed to go with r355116. 2019-02-28 18:50:16 +00:00
DebugInfo [DebugInfo] Apply subprogram attributes on behalf of owner CU 2019-02-27 14:46:59 +00:00
Demangle
Examples Fix a think-o in the disable-kaleidoscope-tests-on-windows predicate of r354646. 2019-02-22 03:56:50 +00:00
ExecutionEngine
Feature
FileCheck Fixup test on Windows with a case-insensitive filesystem due to path printing changes from r352704. 2019-02-05 23:27:38 +00:00
Instrumentation [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
Integer
JitListener
LTO
Linker
MC [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
MachineVerifier GlobalISel: Verify g_insert 2019-02-19 16:10:16 +00:00
Object Fix BB after r354661 2019-02-22 08:58:23 +00:00
ObjectYAML [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
Other [HotColdSplit] Schedule splitting late to fix perf regression 2019-02-15 18:46:44 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen Add support for pointer types in patterns 2019-02-20 19:43:47 +00:00
ThinLTO/X86 [ThinLTO] Use defined node and edge order when dumping DOT file 2019-02-26 07:38:21 +00:00
Transforms [InstCombine] fold adds of constants separated by sext/zext 2019-02-28 19:05:26 +00:00
Unit
Verifier [llvm] Fix typo: 's/ ot / to /' [NFC] 2019-02-21 20:04:20 +00:00
YAMLParser
tools [WebAssembly] Remove uses of ThreadModel 2019-02-28 18:39:08 +00:00
.clang-format
CMakeLists.txt [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00
TestRunner.sh
lit.cfg.py
lit.site.cfg.py.in [Kaleidoscope] Re-enable Kaleidoscope tests. 2019-02-21 22:24:53 +00:00