diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2015-07-27 17:51:59 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-27 17:51:59 +0000 |
| commit | 10b23525cc40f84ee64065c5884fa28ecfcfb001 (patch) | |
| tree | 0a430e389d2dc9b146c21e74ef2c74a75d299c4c /llvm/lib/CodeGen | |
| parent | bc47f8fc212ea92060373cebae07472e48fb03bf (diff) | |
| download | bcm5719-llvm-10b23525cc40f84ee64065c5884fa28ecfcfb001.tar.gz bcm5719-llvm-10b23525cc40f84ee64065c5884fa28ecfcfb001.zip | |
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
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/MachineRegisterInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineRegisterInfo.cpp b/llvm/lib/CodeGen/MachineRegisterInfo.cpp index 5984af87a18..d3704efb631 100644 --- a/llvm/lib/CodeGen/MachineRegisterInfo.cpp +++ b/llvm/lib/CodeGen/MachineRegisterInfo.cpp @@ -116,6 +116,8 @@ void MachineRegisterInfo::clearVirtRegs() { } #endif VRegInfo.clear(); + for (auto &I : LiveIns) + I.second = 0; } void MachineRegisterInfo::verifyUseList(unsigned Reg) const { |

