repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
LoopDeletion
/
pr56266.ll
blob
704f12e892d88a022010ae2f2611a4784451ea7b
1
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2
; RUN: opt -S -passes=loop-deletion < %s | FileCheck %s
3
4
define void @test() {
5
; CHECK-LABEL: @test(
6
; CHECK-NEXT: br label [[EXIT:%.*]]
7
; CHECK: exit:
8
; CHECK-NEXT: ret void
9
;
10
switch i16 0, label %loop [
11
]
12
13
loop:
14
br i1 true, label %exit, label %loop
15
16
exit:
17
ret void
18
}