llvm/test
Sam Kolton ff45a18189 [AMDGPU] SDWA Peephole: improve search for immediates in SDWA patterns
Previously compiler often extracted common immediates into specific register, e.g.:
```
%vreg0 = S_MOV_B32 0xff;
%vreg2 = V_AND_B32_e32 %vreg0, %vreg1
%vreg4 = V_AND_B32_e32 %vreg0, %vreg3
```
Because of this SDWA peephole failed to find SDWA convertible pattern. E.g. in previous example this could be converted into 2 SDWA src operands:
```
SDWA src: %vreg2 src_sel:BYTE_0
SDWA src: %vreg4 src_sel:BYTE_0
```
With this change peephole check if operand is either immediate or register that is copy of immediate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299202 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-31 11:42:43 +00:00
..
Analysis AMDGPU: Add all atomicrmw fields to atomic.inc/dec 2017-03-30 22:21:40 +00:00
Assembler [IR] Add AllowContract to FastMathFlags 2017-03-28 20:11:52 +00:00
Bindings
Bitcode [IR] Add AllowContract to FastMathFlags 2017-03-28 20:11:52 +00:00
BugPoint [IR/Verifier] List the CU we weren't able to find in llvm.dbg.cu. 2017-02-20 22:51:42 +00:00
CodeGen [AMDGPU] SDWA Peephole: improve search for immediates in SDWA patterns 2017-03-31 11:42:43 +00:00
DebugInfo If the DIUnit has flags passed on it then have DW_AT_producer be a combination of DICompileUnit::Producer and Flags. 2017-03-29 23:34:27 +00:00
Examples
ExecutionEngine
Feature Disable gvn-hoist (PR32153) 2017-03-06 21:10:40 +00:00
FileCheck [FileCheck] Added --enable-var-scope option to enable scope for regex variables. 2017-03-09 17:59:04 +00:00
Instrumentation Revert "[asan] Delay creation of asan ctor." 2017-03-27 23:11:50 +00:00
Integer
JitListener
LibDriver
Linker [Linker] Provide callback for internalization 2017-03-13 18:08:11 +00:00
LTO Perform symbol binding for .symver versioned symbols 2017-03-09 00:19:49 +00:00
MC Revert "Dont emit Mapping symbols for sections that contain only data." 2017-03-28 17:15:11 +00:00
Object Add ifunc support to ModuleSymbolTable. 2017-03-29 19:26:26 +00:00
ObjectYAML [WebAssembly] Improve support for WebAssembly binary format 2017-03-30 19:44:09 +00:00
Other Bring back r297624. 2017-03-13 20:00:25 +00:00
SymbolRewriter
TableGen [tablegen][globalisel] Capture instructions into locals and related infrastructure for multiple instructions matches. 2017-03-20 15:20:42 +00:00
ThinLTO/X86 Add support for -fno-builtin to LTO and ThinLTO to libLTO 2017-03-28 18:55:44 +00:00
tools [XRay][tools] Remove some assertions in llvm-xray graph 2017-03-31 01:56:45 +00:00
Transforms Instsimplify: Adding shufflevector test. NFC. 2017-03-31 07:46:02 +00:00
Unit
Verifier [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh