diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-18 09:02:31 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-18 09:02:31 +0000 |
commit | 53824265770e8dfceec551975a9bb0d83eabd5dc (patch) | |
tree | 3d086e5d181980fe647c82225fa9cadb3d8bd0ad /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | fd43be8532ae01815943b005840ed02e46448ae7 (diff) | |
download | bcm5719-llvm-53824265770e8dfceec551975a9bb0d83eabd5dc.tar.gz bcm5719-llvm-53824265770e8dfceec551975a9bb0d83eabd5dc.zip |
Keep UsedBlocks info accurate.
llvm-svn: 35140
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index ba768ba19fa..9209420e3e1 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -198,6 +198,9 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { varInfo.DefInst = prevMi; // update live variables for regB + LiveVariables::VarInfo& varInfoB = LV.getVarInfo(regB); + // regB is used in this BB. + varInfoB.UsedBlocks[mbbi->getNumber()] = true; if (LV.removeVirtualRegisterKilled(regB, mbbi, mi)) LV.addVirtualRegisterKilled(regB, prevMi); |