summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIInstructions.td
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-03-07 21:54:48 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-03-07 21:54:48 +0000
commitc89f2919a47f9a67e787dfad1ea5c20c69bf0b86 (patch)
tree969c80184886dc029ca3829b1a853b3c761ec060 /llvm/lib/Target/AMDGPU/SIInstructions.td
parent583bbb1dd46e1665c2d5f31d4e4772bf6207c1c0 (diff)
downloadbcm5719-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.td3
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
//============================================================================//
OpenPOWER on IntegriCloud