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:
parent
af290edea7
commit
eecfac47a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user