aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/UnifyLoopExits/no-exit-blocks.ll
blob: a213acae6ec00183a01898f79edcc3aba14f2eec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: opt -passes=unify-loop-exits -S %s
; Based from this issue: https://github.com/llvm/llvm-project/issues/165252

define void @test() {
entry:
  br i1 true, label %end, label %Loop

Loop:
  %V = phi i32 [0, %entry], [%V1, %Loop]
  %V1 = add i32 %V, 1
  br label %Loop

end:
  ret void
}