]> granicus.if.org Git - llvm/commit
AMDGPU: Fix shrinking of addc/subb.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 11 Jan 2017 22:58:12 +0000 (22:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 11 Jan 2017 22:58:12 +0000 (22:58 +0000)
commitf1e95d36044289f6acbfc77270689a869b4db44a
treee62de7a7d953af7bca4a452dd953e159d2e74fb7
parentbdb13d2c7cf22236d7fb9d4f0a0fa46dd08d128a
AMDGPU: Fix shrinking of addc/subb.

To shrink to VOP2 the input carry must also be VCC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291720 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIShrinkInstructions.cpp
test/CodeGen/AMDGPU/shrink-vop3-carry-out.mir