summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-07 18:40:55 +0000
committerDevang Patel <dpatel@apple.com>2007-06-07 18:40:55 +0000
commit593e766fb5d5f477ab5ca14d8893b89a449863d5 (patch)
treede80684edb2548c3eedaa55250a6c6bfa8d1c90f /llvm/lib/Transforms
parent171bbf61edd74215aad6d7a3598f6089dbc15f16 (diff)
downloadbcm5719-llvm-593e766fb5d5f477ab5ca14d8893b89a449863d5.tar.gz
bcm5719-llvm-593e766fb5d5f477ab5ca14d8893b89a449863d5.zip
Use DominatorTree instead of ETForest.
llvm-svn: 37494
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/GCSE.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/GCSE.cpp b/llvm/lib/Transforms/Scalar/GCSE.cpp
index d9f57c486c4..d7194bb3d66 100644
--- a/llvm/lib/Transforms/Scalar/GCSE.cpp
+++ b/llvm/lib/Transforms/Scalar/GCSE.cpp
@@ -68,9 +68,9 @@ bool GCSE::runOnFunction(Function &F) {
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 @@ bool GCSE::runOnFunction(Function &F) {
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
OpenPOWER on IntegriCloud