Undo previous patch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2008-12-08 17:02:37 +00:00
parent 174f938bd0
commit 6d9896f153
2 changed files with 2 additions and 4 deletions

View File

@ -168,9 +168,7 @@ static Value *FindLIVLoopCondition(Value *Cond, Loop *L, bool &Changed) {
// TODO: Handle: br (VARIANT|INVARIANT).
// TODO: Hoist simple expressions out of loops.
if (Instruction *I = dyn_cast<Instruction>(Cond))
if (!L->contains(I->getParent()))
return 0;
if (L->isLoopInvariant(Cond)) return Cond;
if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Cond))
if (BO->getOpcode() == Instruction::And ||