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/PHIElimination.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/PHIElimination.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PHIElimination.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PHIElimination.cpp b/llvm/lib/CodeGen/PHIElimination.cpp index 6a9f4282080..734a06fa9d2 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -160,6 +160,8 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB, // Realize that the destination register is defined by the PHI copy now, not // the PHI itself. LV->getVarInfo(DestReg).DefInst = PHICopy; + + LV->getVarInfo(IncomingReg).UsedBlocks[MBB.getNumber()] = true; } // Adjust the VRegPHIUseCount map to account for the removal of this PHI @@ -210,6 +212,7 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB, // instruction kills the incoming value. // LiveVariables::VarInfo &InRegVI = LV->getVarInfo(SrcReg); + InRegVI.UsedBlocks[opBlock.getNumber()] = true; // Loop over all of the successors of the basic block, checking to see // if the value is either live in the block, or if it is killed in the |

