1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Analysis/RegionInfo/infinite_loop_5_c.ll
Tobias Grosser 68e42a688d [RegionInfo] Add three tests that include infinite loops
These examples are variations that were inspired from a small subgraph taken
from paper.ll which are interesting as they show certain issues with infinite
loops.

llvm-svn: 286450
2016-11-10 13:56:19 +00:00

23 lines
389 B
LLVM

; RUN: opt -regions -analyze < %s | FileCheck %s
define void @normal_condition() nounwind {
0:
br label %"7"
7:
br i1 1, label %"1", label %"8"
1:
br i1 1, label %"6", label %"3"
6:
br label %"8"
8:
br i1 1, label %"8", label %"7"
3:
br label %"4"
4:
ret void
}
; CHECK: [0] 0 => <Function Return>
; CHECK-NEXT: [1] 7 => 3
; CHECK-NEXT: [2] 8 => 7