summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-11-06 05:26:02 +0000
committerOwen Anderson <resistor@mac.com>2007-11-06 05:26:02 +0000
commitd378cea030e465b528fcf03fcc72d28845b3bcba (patch)
treedaa0d8ffd405a8d7a7d425f286487bdda756a330 /llvm/lib
parenteb964eb2c8e6a49ab26d240e6eb447a9802aabc5 (diff)
downloadbcm5719-llvm-d378cea030e465b528fcf03fcc72d28845b3bcba.tar.gz
bcm5719-llvm-d378cea030e465b528fcf03fcc72d28845b3bcba.zip
Add a few comments.
llvm-svn: 43755
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/StrongPHIElimination.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp
index c5e9c343fc7..86224038a02 100644
--- a/llvm/lib/CodeGen/StrongPHIElimination.cpp
+++ b/llvm/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<MachineBasicBlock*, unsigned>& 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::DomForestNode*>
StrongPHIElimination::computeDomForest(std::set<unsigned>& regs) {
LiveVariables& LV = getAnalysis<LiveVariables>();
@@ -215,6 +219,7 @@ StrongPHIElimination::computeDomForest(std::set<unsigned>& regs) {
return ret;
}
+/// processPHI - Eliminate the given PHI node
void StrongPHIElimination::processPHI(MachineInstr* P) {
}
OpenPOWER on IntegriCloud