Reverting patch in revision 89758, initial attempt at fixing PR5373 has proven to be bogus.

llvm-svn: 89844
This commit is contained in:
Edward O'Callaghan 2009-11-25 05:38:41 +00:00
parent 7f52922e77
commit 4b197b8908
2 changed files with 1 additions and 24 deletions

View File

@ -296,6 +296,7 @@ static bool isTrivialLoopExitBlockHelper(Loop *L, BasicBlock *BB,
// first exit.
if (ExitBB != 0) return false;
ExitBB = BB;
return true;
}
// Otherwise, this is an unvisited intra-loop node. Check all successors.

View File

@ -1,24 +0,0 @@
; RUN: opt < %s -loop-unswitch -stats -disable-output |& grep "3 loop-unswitch - Number of branches unswitched"
define noalias i32* @func_16(i32** %p_18, i32* %p_20) noreturn nounwind ssp {
entry:
%lnot = icmp eq i32** %p_18, null ; <i1> [#uses=1]
%lnot6 = icmp eq i32* %p_20, null ; <i1> [#uses=1]
br label %for.body
for.body: ; preds = %cond.end, %entry
br i1 %lnot, label %cond.end, label %cond.true
cond.true: ; preds = %for.body
tail call void @f()
unreachable
cond.end: ; preds = %for.body
br i1 %lnot6, label %for.body, label %cond.true10
cond.true10: ; preds = %cond.end
tail call void @f()
unreachable
}
declare void @f() noreturn