diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-04-18 00:36:11 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-04-18 00:36:11 +0000 |
commit | a5a0c7c909d9376eb2568132ac361c107a746a15 (patch) | |
tree | e3421d5587e270c39e8aa4b115079aa096e5c1ff /llvm/lib/CodeGen/PHIElimination.cpp | |
parent | 135a077c93ea6664d24323e9781fb5f4b18a9831 (diff) | |
download | bcm5719-llvm-a5a0c7c909d9376eb2568132ac361c107a746a15.tar.gz bcm5719-llvm-a5a0c7c909d9376eb2568132ac361c107a746a15.zip |
Increment use count of new virtuals created during PHI elimination.
llvm-svn: 36233
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 734a06fa9d2..513bfdeb256 100644 --- a/llvm/lib/CodeGen/PHIElimination.cpp +++ b/llvm/lib/CodeGen/PHIElimination.cpp @@ -138,6 +138,9 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB, if (LV) { MachineInstr *PHICopy = prior(AfterPHIsIt); + // Increment use count of the newly created virtual register. + LV->getVarInfo(IncomingReg).NumUses++; + // Add information to LiveVariables to know that the incoming value is // killed. Note that because the value is defined in several places (once // each for each incoming block), the "def" block and instruction fields |