blob: 76b7bb21e468f238ee328e7724acd1cd4f517b67 [file] [log] [blame]
Cameron Zwarich4a60b932011-02-10 23:38:10 +00001; RUN: opt -S -loop-simplify -disable-output -verify-loop-info -verify-dom-info < %s
Dan Gohman841a1472009-10-19 16:04:50 +00002; PR5235
3
4; When loopsimplify inserts a preheader for this loop, it should add the new
5; block to the enclosing loop and not get confused by the unreachable
6; bogus loop entry.
7
8define void @is_extract_cab() nounwind {
9entry:
10 br label %header
11
12header: ; preds = %if.end206, %cond.end66, %if.end23
13 br label %while.body115
14
15while.body115: ; preds = %9, %if.end192, %if.end101
16 br i1 undef, label %header, label %while.body115
17
18foo:
19 br label %while.body115
20}