diff options
author | Owen Anderson <resistor@mac.com> | 2007-11-06 05:26:02 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-11-06 05:26:02 +0000 |
commit | 9c88538126b554eb14405e98cfaedda6893a39d7 (patch) | |
tree | 8150da445f14f4e55bc5a6fddadf11e438fd038c | |
parent | 5a9ce05eb9601ddf5ec0e9dea9f188df6ef0709f (diff) | |
download | external_llvm-9c88538126b554eb14405e98cfaedda6893a39d7.zip external_llvm-9c88538126b554eb14405e98cfaedda6893a39d7.tar.gz external_llvm-9c88538126b554eb14405e98cfaedda6893a39d7.tar.bz2 |
Add a few comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43755 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/StrongPHIElimination.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index c5e9c34..8622403 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<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) { } |