diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-03-07 21:54:48 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-03-07 21:54:48 +0000 |
| commit | c89f2919a47f9a67e787dfad1ea5c20c69bf0b86 (patch) | |
| tree | 969c80184886dc029ca3829b1a853b3c761ec060 /llvm/lib/Target/AMDGPU/SIInstructions.td | |
| parent | 583bbb1dd46e1665c2d5f31d4e4772bf6207c1c0 (diff) | |
| download | bcm5719-llvm-c89f2919a47f9a67e787dfad1ea5c20c69bf0b86.tar.gz bcm5719-llvm-c89f2919a47f9a67e787dfad1ea5c20c69bf0b86.zip | |
AMDGPU: Match more med3 integer patterns
llvm-svn: 262864
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInstructions.td')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIInstructions.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td index be3a672e83b..effa0fabaa6 100644 --- a/llvm/lib/Target/AMDGPU/SIInstructions.td +++ b/llvm/lib/Target/AMDGPU/SIInstructions.td @@ -3268,6 +3268,9 @@ def : Pat < def : SHA256MaPattern <V_BFI_B32, V_XOR_B32_e64>; +def : IntMed3Pat<V_MED3_I32, smax, smax_oneuse, smin_oneuse>; +def : IntMed3Pat<V_MED3_U32, umax, umax_oneuse, umin_oneuse>; + //============================================================================// // Assembler aliases //============================================================================// |

