diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-06-11 09:32:57 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-06-11 09:32:57 +0000 |
commit | b9b2b309d3195d9e2ed1e72da8566a470783e8d7 (patch) | |
tree | 391e6afa02db4c36c5acbaa0fe406282b7b6ea5d /lib/Analysis/LoopInfo.cpp | |
parent | 31d1a2c51c4dfcd1cb7a8036f195fb717b6b7327 (diff) |
Back out Owen's 6/9 changes. They broke MultiSource/Benchmarks/Prolangs-C/bison (and perhaps others).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopInfo.cpp')
-rw-r--r-- | lib/Analysis/LoopInfo.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/Analysis/LoopInfo.cpp b/lib/Analysis/LoopInfo.cpp index eed2cd6c4e..c7ce58ef91 100644 --- a/lib/Analysis/LoopInfo.cpp +++ b/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 |