OSDN Git Service

RenameIndependentSubregs: Fix handling of undef tied operands
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Jun 2017 22:58:57 +0000 (22:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Jun 2017 22:58:57 +0000 (22:58 +0000)
commit323e6e9ede2cf54015cb21c0bf2468058dd6ac6f
tree4d6aee9dcbe7731555f4d855ae8458d693a65cff
parentde4b0d7fbb944b7050eeeeacf2a5a96a305a4085
RenameIndependentSubregs: Fix handling of undef tied operands

If a tied source operand was undef, it would be replaced but not
update the other tied operand, which would end up using different
virtual registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304747 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RenameIndependentSubregs.cpp
test/CodeGen/AMDGPU/rename-independent-subregs-invalid-mac-operands.mir [new file with mode: 0644]