diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-08 01:20:48 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-08 01:20:48 +0000 |
commit | 721b2ccda626f175ab941d085d2bbc552ddafd9f (patch) | |
tree | 9f30b3ba2b3985dd0d498b40311128422cb9471f /lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 3e4f2ad3741959c71e2acd3206fa13901a12c94d (diff) | |
download | external_llvm-721b2ccda626f175ab941d085d2bbc552ddafd9f.tar.gz external_llvm-721b2ccda626f175ab941d085d2bbc552ddafd9f.tar.bz2 external_llvm-721b2ccda626f175ab941d085d2bbc552ddafd9f.zip |
Bring UsedBlocks back. StrongPHIElimination needs this information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 277257bd61..b8d38dc229 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -202,6 +202,10 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) { LiveVariables::VarInfo& varInfo = LV.getVarInfo(regA); 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); |