Reset the virtual registers in liveins when clearing the virtual registers.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 27 Jul 2015 17:51:59 +0000 (17:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 27 Jul 2015 17:51:59 +0000 (17:51 +0000)
commit6c304ebd8aa0d0ba11c44804ce53d123bf6117e5
tree11c6fa38a8327c9a111b610df595d68177d4b456
parenta5da4f1f8d8751f6e8f1ddd4b787c6026a3b51f9
Reset the virtual registers in liveins when clearing the virtual registers.

This commit zeroes out the virtual register references in the machine
function's liveins in the class 'MachineRegisterInfo' when the virtual
register definitions are cleared.

Reviewers: Matthias Braun

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243290 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineRegisterInfo.cpp
test/CodeGen/X86/virtual-registers-cleared-in-machine-functions-liveins.ll [new file with mode: 0644]