diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-08-10 09:54:35 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-08-10 09:54:35 +0000 |
commit | 73362c820bad20e545d37b8a2414c35c0d3d583c (patch) | |
tree | 463d403b034add16033613b5375133841016b938 /test/Analysis | |
parent | 0e28b1507fdf889fdfe0159a042ec8c74f6c2245 (diff) | |
download | llvm-73362c820bad20e545d37b8a2414c35c0d3d583c.tar.gz llvm-73362c820bad20e545d37b8a2414c35c0d3d583c.tar.bz2 llvm-73362c820bad20e545d37b8a2414c35c0d3d583c.tar.xz |
RegionInfo: Do not assert if a BB is not part of the dominance tree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll b/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll new file mode 100644 index 0000000000..218b4375f7 --- /dev/null +++ b/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll @@ -0,0 +1,20 @@ +; RUN: opt -regions %s +define i32 @main() nounwind { +entry: + br label %for.cond + +test: + br label %for.cond + +for.cond: ; preds = %for.inc, %entry + br i1 true, label %for.body, label %for.end + +for.body: ; preds = %for.cond + br label %for.inc + +for.inc: ; preds = %for.body + br label %for.cond + +for.end: ; preds = %for.cond + ret i32 0 +} |