]> granicus.if.org Git - llvm/commit
AMDGPU: Select VOP3 form of sub
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 15:37:07 +0000 (15:37 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 15:37:07 +0000 (15:37 +0000)
commit7b6c63da6c757237804513d4420d20b3833b9ec0
tree3b42f52e12e7058a592a5c7f1d313b8c50659a0f
parentbec96285e226b57d7ec91893455071cf1e9cfc93
AMDGPU: Select VOP3 form of sub

The VOP3 form should always be the preferred selection form to be
shrunk later.

The r600 sub test needs to be split out because it asserts on the
arguments in the new test during the calling convention lowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359899 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/VOP2Instructions.td
test/CodeGen/AMDGPU/r600.sub.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/sub.ll