1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Increment use count of new virtuals created during PHI elimination.

llvm-svn: 36233
This commit is contained in:
Evan Cheng 2007-04-18 00:36:11 +00:00
parent af290edea7
commit eecfac47a8

View File

@ -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