From: Owen Anderson Date: Tue, 6 Nov 2007 05:26:02 +0000 (+0000) Subject: Add a few comments. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8b96b9fce084640cee62d39dab8d7f882818e122;p=oota-llvm.git Add a few comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43755 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index c5e9c343fc7..86224038a02 100644 --- a/lib/CodeGen/StrongPHIElimination.cpp +++ b/lib/CodeGen/StrongPHIElimination.cpp @@ -146,6 +146,8 @@ void StrongPHIElimination::computeDFS(MachineFunction& MF) { } } +/// PreorderSorter - a helper class that is used to sort registers +/// according to the preorder number of their defining blocks class PreorderSorter { private: DenseMap& preorder; @@ -172,6 +174,8 @@ public: } }; +/// computeDomForest - compute the subforest of the DomTree corresponding +/// to the defining blocks of the registers in question std::vector StrongPHIElimination::computeDomForest(std::set& regs) { LiveVariables& LV = getAnalysis(); @@ -215,6 +219,7 @@ StrongPHIElimination::computeDomForest(std::set& regs) { return ret; } +/// processPHI - Eliminate the given PHI node void StrongPHIElimination::processPHI(MachineInstr* P) { }