Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
a5a0c7c9
Commit
a5a0c7c9
authored
17 years ago
by
Evan Cheng
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/CodeGen/PHIElimination.cpp
+3
-0
3 additions, 0 deletions
llvm/lib/CodeGen/PHIElimination.cpp
with
3 additions
and
0 deletions
llvm/lib/CodeGen/PHIElimination.cpp
+
3
−
0
View file @
a5a0c7c9
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment