summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/LoopPass.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-02-23 00:16:44 +0000
committerDevang Patel <dpatel@apple.com>2007-02-23 00:16:44 +0000
commit8ded5852fe0dd317d9903809b49060248003d365 (patch)
treeec5f022696e012419a6152a3abcdc2b43b39db14 /include/llvm/Analysis/LoopPass.h
parent5afdc7d78526622034932e6d07871c7b25d87361 (diff)
downloadllvm-8ded5852fe0dd317d9903809b49060248003d365.tar.gz
llvm-8ded5852fe0dd317d9903809b49060248003d365.tar.bz2
llvm-8ded5852fe0dd317d9903809b49060248003d365.tar.xz
Add facility that allows LoopPass to re-insert a loop into
Loop Pass Manager's queue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopPass.h')
-rw-r--r--include/llvm/Analysis/LoopPass.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h
index 046da6f13d..b3d4c6e897 100644
--- a/include/llvm/Analysis/LoopPass.h
+++ b/include/llvm/Analysis/LoopPass.h
@@ -85,10 +85,15 @@ public:
// Delete loop from the loop queue. This is used by Loop pass to inform
// Loop Pass Manager that it should skip rest of the passes for this loop.
void deleteLoopFromQueue(Loop *L);
+
+ // Reoptimize this loop. LPPassManager will re-insert this loop into the
+ // queue. This allows LoopPass to change loop nest for the loop. This
+ // utility may send LPPassManager into infinite loops so use caution.
+ void redoLoop(Loop *L);
private:
LoopQueue *LQ;
bool skipThisLoop;
-
+ bool redoThisLoop;
};
} // End llvm namespace