summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-06-11 09:32:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-06-11 09:32:57 +0000
commit1b6e310e6f1e8bedf30ddef5a8903bdd0c648479 (patch)
tree2d30163b7e7326c83258e447fdd6758f0f34ae5e /llvm/lib/Analysis
parentbfd0b6d8e45024e8f5415102806fc12454f9464a (diff)
downloadbcm5719-llvm-1b6e310e6f1e8bedf30ddef5a8903bdd0c648479.tar.gz
bcm5719-llvm-1b6e310e6f1e8bedf30ddef5a8903bdd0c648479.zip
Back out Owen's 6/9 changes. They broke MultiSource/Benchmarks/Prolangs-C/bison (and perhaps others).
llvm-svn: 28747
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/LoopInfo.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Analysis/LoopInfo.cpp b/llvm/lib/Analysis/LoopInfo.cpp
index eed2cd6c4ef..c7ce58ef915 100644
--- a/llvm/lib/Analysis/LoopInfo.cpp
+++ b/llvm/lib/Analysis/LoopInfo.cpp
@@ -479,22 +479,6 @@ Value *Loop::getTripCount() const {
return 0;
}
-/// isLCSSAForm - Return true if the Loop is in LCSSA form
-bool Loop::isLCSSAForm() const {
- for (Loop::block_iterator BB = block_begin(), E = block_end();
- BB != E; ++BB) {
- for (BasicBlock::iterator I = (*BB)->begin(), E = (*BB)->end(); I != E; ++I)
- for (Value::use_iterator UI = I->use_begin(), E = I->use_end(); UI != E;
- ++UI) {
- BasicBlock *UserBB = cast<Instruction>(*UI)->getParent();
- if (!isa<PHINode>(*UI) && !contains(UserBB)) {
- return false;
- }
- }
- }
-
- return true;
-}
//===-------------------------------------------------------------------===//
// APIs for updating loop information after changing the CFG
OpenPOWER on IntegriCloud