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 | f84df2668096a72e8d74eadced54c7439a0a60c7 (patch) | |
tree | 3406765640140e2f6d108a99f4bdcb006c3bbc61 /lib | |
parent | 29ca2a36358dcc28dfa8dd9c8033b8c6b0384a60 (diff) | |
download | external_llvm-f84df2668096a72e8d74eadced54c7439a0a60c7.zip external_llvm-f84df2668096a72e8d74eadced54c7439a0a60c7.tar.gz external_llvm-f84df2668096a72e8d74eadced54c7439a0a60c7.tar.bz2 |
Improve a few comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index e5cae2b..ff58e79 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/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) || |