Skip to content
Snippets Groups Projects
Commit a5a0c7c9 authored by Evan Cheng's avatar Evan Cheng
Browse files

Increment use count of new virtuals created during PHI elimination.

llvm-svn: 36233
parent 135a077c
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,9 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB, ...@@ -138,6 +138,9 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
if (LV) { if (LV) {
MachineInstr *PHICopy = prior(AfterPHIsIt); 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 // Add information to LiveVariables to know that the incoming value is
// killed. Note that because the value is defined in several places (once // killed. Note that because the value is defined in several places (once
// each for each incoming block), the "def" block and instruction fields // each for each incoming block), the "def" block and instruction fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment