1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/test
Simon Pilgrim c007d602eb [SLPVectorizer] Add initial alternate opcode support for cast instructions. (REAPPLIED)
We currently only support binary instructions in the alternate opcode shuffles.

This patch is an initial attempt at adding cast instructions as well, this raises several issues that we probably want to address as we continue to generalize the alternate mechanism:

1 - Duplication of cost determination - we should probably add scalar/vector costs helper functions and get BoUpSLP::getEntryCost to use them instead of determining costs directly.
2 - Support alternate instructions with the same opcode (e.g. casts with different src types) - alternate vectorization of calls with different IntrinsicIDs will require this.
3 - Allow alternates to be a different instruction type - mixing binary/cast/call etc.
4 - Allow passthrough of unsupported alternate instructions - related to PR30787/D28907 'copyable' elements.

Reapplied with fix to only accept 2 different casts if they come from the same source type.

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

llvm-svn: 336812
2018-07-11 15:05:10 +00:00
..
Analysis llvm: Add support for "-fno-delete-null-pointer-checks" 2018-07-09 22:27:23 +00:00
Assembler
Bindings
Bitcode Add bitcode compatibility test for 6.0 2018-07-09 17:57:48 +00:00
BugPoint
CodeGen [CodeGen] Ignore debug uses in MachineCopyPropagation 2018-07-11 13:30:27 +00:00
DebugInfo [Debugify] Allow unsigned values narrower than their variables 2018-07-06 17:32:40 +00:00
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MC Use debug-prefix-map for AT_NAME 2018-07-11 12:30:35 +00:00
Object
ObjectYAML
Other [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TableGen] Add a general-purpose JSON backend. 2018-07-11 08:40:19 +00:00
ThinLTO/X86 [ThinLTO] Use std::map to get determistic imports files 2018-07-10 20:06:04 +00:00
tools [llvm-mca] Use a different character to flag instructions with side-effects in the Instruction Info View. NFC 2018-07-11 12:44:44 +00:00
Transforms [SLPVectorizer] Add initial alternate opcode support for cast instructions. (REAPPLIED) 2018-07-11 15:05:10 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh