summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/RegionInfo
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-08-10 09:54:35 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-08-10 09:54:35 +0000
commit7fbe6cb42930a880afea561e0e882e0e390f5225 (patch)
tree472804920db868b96f4593a3f2830f2035c8df69 /llvm/test/Analysis/RegionInfo
parentfedeff80156ae0acfb5587bb592aef8276a65f0c (diff)
downloadbcm5719-llvm-7fbe6cb42930a880afea561e0e882e0e390f5225.tar.gz
bcm5719-llvm-7fbe6cb42930a880afea561e0e882e0e390f5225.zip
RegionInfo: Do not assert if a BB is not part of the dominance tree.
llvm-svn: 110665
Diffstat (limited to 'llvm/test/Analysis/RegionInfo')
-rw-r--r--llvm/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll b/llvm/test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll
new file mode 100644
index 00000000000..218b4375f70
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud