commit | e951cd1647834c1c6877ca9a699ef6b00a2d0ce9 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Sun Mar 18 09:02:31 2007 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Sun Mar 18 09:02:31 2007 +0000 |
tree | e899f3d6c18fdab15135930d85a7159d38424800 | |
parent | 7e79e396a4ee6f96346881e090c943d7207d8abe [diff] [blame] |
Keep UsedBlocks info accurate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35140 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index ba768ba..9209420 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -198,6 +198,9 @@ 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);