SelectionDAG: Match min/max if the scalar operation is legal
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Dec 2015 23:16:47 +0000 (23:16 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 11 Dec 2015 23:16:47 +0000 (23:16 +0000)
commitbe6eaee35a261d33f0db2094517fe242bda9db48
tree758fc4fe2e3eaa71b1b03959710132986fe5f140
parent15c5be1ee58a67965bee79832441f1136a7698dc
SelectionDAG: Match min/max if the scalar operation is legal

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255388 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/AMDGPU/fmax_legacy.ll
test/CodeGen/AMDGPU/fmin_legacy.ll
test/CodeGen/AMDGPU/max.ll
test/CodeGen/AMDGPU/min.ll
test/CodeGen/AMDGPU/sminmax.ll