[llvm-commits] CVS: llvm/lib/Transforms/Scalar/GCSE.cpp

Devang Patel dpatel at apple.com
Thu Jun 7 11:41:17 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

GCSE.cpp updated: 1.59 -> 1.60
---
Log message:

Use DominatorTree instead of ETForest.


---
Diffs of the changes:  (+3 -3)

 GCSE.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.59 llvm/lib/Transforms/Scalar/GCSE.cpp:1.60
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.59	Sun Jun  3 19:32:21 2007
+++ llvm/lib/Transforms/Scalar/GCSE.cpp	Thu Jun  7 13:40:55 2007
@@ -68,9 +68,9 @@
   bool Changed = false;
 
   // Get pointers to the analysis results that we will be using...
-  ETForest &EF = getAnalysis<ETForest>();
-  ValueNumbering &VN = getAnalysis<ValueNumbering>();
   DominatorTree &DT = getAnalysis<DominatorTree>();
+  ETForest &ET = getAnalysis<ETForest>();
+  ValueNumbering &VN = getAnalysis<ValueNumbering>();
 
   std::vector<Value*> EqualValues;
 
@@ -145,7 +145,7 @@
             if (OtherI->getParent() == BB)
               Dominates = BlockInsts.count(OtherI);
             else
-              Dominates = EF.dominates(OtherI->getParent(), BB);
+              Dominates = ET.dominates(OtherI->getParent(), BB);
 
             if (Dominates) {
               // Okay, we found an instruction with the same value as this one






More information about the llvm-commits mailing list