summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/LoopExtractor.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-07 22:17:16 +0000
committerDevang Patel <dpatel@apple.com>2007-06-07 22:17:16 +0000
commit4b90e3a276c0bb1bd4d90289e27aa3c4f890b5af (patch)
treebc1da155feade95e2eefab818753f7d984a5e839 /lib/Transforms/IPO/LoopExtractor.cpp
parent326821ef12c911af1d785e305e81dc3c07e456a5 (diff)
downloadllvm-4b90e3a276c0bb1bd4d90289e27aa3c4f890b5af.tar.gz
llvm-4b90e3a276c0bb1bd4d90289e27aa3c4f890b5af.tar.bz2
llvm-4b90e3a276c0bb1bd4d90289e27aa3c4f890b5af.tar.xz
Do not use ETForest as well as DomiantorTree. DominatorTree is sufficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r--lib/Transforms/IPO/LoopExtractor.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp
index 768afca5e6..7b14ce04de 100644
--- a/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/lib/Transforms/IPO/LoopExtractor.cpp
@@ -45,7 +45,6 @@ namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(BreakCriticalEdgesID);
AU.addRequiredID(LoopSimplifyID);
- AU.addRequired<ETForest>();
AU.addRequired<DominatorTree>();
AU.addRequired<LoopInfo>();
}
@@ -78,7 +77,6 @@ bool LoopExtractor::runOnFunction(Function &F) {
if (LI.begin() == LI.end())
return false;
- ETForest &EF = getAnalysis<ETForest>();
DominatorTree &DT = getAnalysis<DominatorTree>();
// If there is more than one top-level loop in this function, extract all of
@@ -88,7 +86,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
for (LoopInfo::iterator i = LI.begin(), e = LI.end(); i != e; ++i) {
if (NumLoops == 0) return Changed;
--NumLoops;
- Changed |= ExtractLoop(EF, DT, *i) != 0;
+ Changed |= ExtractLoop(DT, *i) != 0;
++NumExtracted;
}
} else {
@@ -118,7 +116,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
if (ShouldExtractLoop) {
if (NumLoops == 0) return Changed;
--NumLoops;
- Changed |= ExtractLoop(EF, DT, TLL) != 0;
+ Changed |= ExtractLoop(DT, TLL) != 0;
++NumExtracted;
} else {
// Okay, this function is a minimal container around the specified loop.
@@ -128,7 +126,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
for (Loop::iterator i = TLL->begin(), e = TLL->end(); i != e; ++i) {
if (NumLoops == 0) return Changed;
--NumLoops;
- Changed |= ExtractLoop(EF, DT, *i) != 0;
+ Changed |= ExtractLoop(DT, *i) != 0;
++NumExtracted;
}
}