]> granicus.if.org Git - llvm/commit
[AMDGPU] simplify add x, *ext (setcc) => addc|subb x, 0, setcc
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 21 Jun 2017 22:05:06 +0000 (22:05 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 21 Jun 2017 22:05:06 +0000 (22:05 +0000)
commit1a1f5442634b78abdb5ca315b15d3e17a18ed59e
tree159144018fc357f5e6d393f6dc53fbe91875a619
parent52c64527391040043b8024a0662936da6325f0b5
[AMDGPU] simplify add x, *ext (setcc) => addc|subb x, 0, setcc

This simplification allows to avoid generating v_cndmask_b32
to serialize condition code between compare and use.

Differential Revision: https://reviews.llvm.org/D34300

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305962 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUInstrInfo.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIISelLowering.h
lib/Target/AMDGPU/VOP2Instructions.td
test/CodeGen/AMDGPU/combine-cond-add-sub.ll [new file with mode: 0644]