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)
commit10b23525cc40f84ee64065c5884fa28ecfcfb001
tree0a430e389d2dc9b146c21e74ef2c74a75d299c4c
parentbc47f8fc212ea92060373cebae07472e48fb03bf
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
llvm-svn: 243290
llvm/lib/CodeGen/MachineRegisterInfo.cpp
llvm/test/CodeGen/X86/virtual-registers-cleared-in-machine-functions-liveins.ll [new file with mode: 0644]