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
Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
SimpleLoopUnswitch
/
formDedicatedAfterTrivial2.ll
blob
5fa7e226298cfe2e413f958416e72c22cbe8d456
1
; RUN: opt < %s -passes=simple-loop-unswitch -disable-output
2
3
; PR38283
4
; PR38737
5
define void @Test(i32) {
6
entry:
7
%trunc = trunc i32 %0 to i3
8
br label %outer
9
outer:
10
br label %inner
11
inner:
12
switch i3 %trunc, label %crit_edge [
13
i3 2, label %break
14
i3 1, label %loopexit
15
]
16
crit_edge:
17
br i1 true, label %loopexit, label %inner
18
loopexit:
19
ret void
20
break:
21
br label %outer
22
}