[llvm-commits] [llvm] r43755 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

Owen Anderson resistor at mac.com
Mon Nov 5 21:26:02 PST 2007


Author: resistor
Date: Mon Nov  5 23:26:02 2007
New Revision: 43755

URL: http://llvm.org/viewvc/llvm-project?rev=43755&view=rev
Log:
Add a few comments.

Modified:
    llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp

Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp?rev=43755&r1=43754&r2=43755&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Mon Nov  5 23:26:02 2007
@@ -146,6 +146,8 @@
   }
 }
 
+/// 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 @@
   }
 };
 
+/// 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 @@
   return ret;
 }
 
+/// processPHI - Eliminate the given PHI node
 void StrongPHIElimination::processPHI(MachineInstr* P) {
   
 }





More information about the llvm-commits mailing list