diff options
| author | Owen Anderson <resistor@mac.com> | 2008-01-21 22:01:01 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-01-21 22:01:01 +0000 |
| commit | d990b4f646988547c0ef8f6dad4faf1f208313b6 (patch) | |
| tree | 73b6c77ce6b5fc61f834e6da1b3eb2071bb84304 /llvm/lib | |
| parent | 92a56b54996d1529580fc5254072720b3d8445cc (diff) | |
| download | bcm5719-llvm-d990b4f646988547c0ef8f6dad4faf1f208313b6.tar.gz bcm5719-llvm-d990b4f646988547c0ef8f6dad4faf1f208313b6.zip | |
Improve a few comments.
llvm-svn: 46217
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index e5cae2bc723..ff58e796bf5 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -550,7 +550,9 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst, for (DomForestNode::iterator CI = DFNode->begin(), CE = DFNode->end(); CI != CE; ++CI) { DomForestNode* child = *CI; - + + // If the current node is live-out of the defining block of one of its + // children, insert a copy for it if (isLiveOut(DFNode->getReg(), MRI.getVRegDef(child->getReg())->getParent(), MRI, LV)) { // Insert copies for parent @@ -565,6 +567,9 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst, PHIUnion.erase(SrcReg); } } + + // If a node is live-in to the defining block of one of its children, but + // not live-out, then we need to scan that block for local interferences. } else if (isLiveIn(DFNode->getReg(), MRI.getVRegDef(child->getReg())->getParent(), MRI, LV) || |

