diff options
author | Owen Anderson <resistor@mac.com> | 2008-01-21 22:03:00 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-01-21 22:03:00 +0000 |
commit | 7fb6241733df609348a9cea2216d9901f2e641bb (patch) | |
tree | 062d425fae472ae7e71415874190c5ae829779d4 /llvm/lib/CodeGen/StrongPHIElimination.cpp | |
parent | d990b4f646988547c0ef8f6dad4faf1f208313b6 (diff) | |
download | bcm5719-llvm-7fb6241733df609348a9cea2216d9901f2e641bb.tar.gz bcm5719-llvm-7fb6241733df609348a9cea2216d9901f2e641bb.zip |
Clarify a deviation from the original algorithm.
llvm-svn: 46218
Diffstat (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index ff58e796bf5..5b80b94f3fc 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -552,7 +552,10 @@ void StrongPHIElimination::processPHIUnion(MachineInstr* Inst, DomForestNode* child = *CI; // If the current node is live-out of the defining block of one of its - // children, insert a copy for it + // children, insert a copy for it. NOTE: The paper actually calls for + // a more elaborate heuristic for determining whether to insert copies + // for the child or the parent. In the interest of simplicity, we're + // just always choosing the parent. if (isLiveOut(DFNode->getReg(), MRI.getVRegDef(child->getReg())->getParent(), MRI, LV)) { // Insert copies for parent |