]> granicus.if.org Git - llvm/commit
RegAlloc: Fix verifier error with undef identity copies
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 20 May 2019 14:09:36 +0000 (14:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 20 May 2019 14:09:36 +0000 (14:09 +0000)
commite3747985b52dfd5572a73e8cecaa43cb481c887b
tree811e179b222552e650d6698a39973a2a8b830ce8
parent26f54132c9f775d0c3d116f7bfc9dfb9510f38f3
RegAlloc: Fix verifier error with undef identity copies

The code did not match the example in the comment, and was checking
the undef flag on the copy dest instead of source. The existing tests
were only hitting the > 2 operands case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361156 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/VirtRegMap.cpp
test/CodeGen/AMDGPU/virtregrewrite-undef-identity-copy.mir [new file with mode: 0644]