Update LoopSimplify to require and preserve DominatorTree only.

Now LoopSimplify does not require nor preserve ETForest.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2007-06-08 01:50:32 +00:00
parent 1a90a5aebe
commit dba2413b2e
3 changed files with 42 additions and 35 deletions

View File

@ -195,6 +195,10 @@ protected:
return NULL;
return Common->getData<BasicBlock>();
}
/// isReachableFromEntry - Return true if A is dominated by the entry
/// block of the function containing it.
const bool isReachableFromEntry(BasicBlock* A);
/// dominates - Returns true iff this dominates N. Note that this is not a
/// constant time operation!