repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
Transforms
/
SimplifyCFG
/
assume.ll
blob
1d1b96a58edfbf44c9ab10bee0c22f41c75f629f
1
; RUN: opt -simplifycfg -S < %s | FileCheck %s
2
3
define void @test1() {
4
call void @llvm.assume(i1 0)
5
ret void
6
7
; CHECK-LABEL: @test1
8
; CHECK-NOT: llvm.assume
9
; CHECK: unreachable
10
}
11
12
define void @test2() {
13
call void @llvm.assume(i1 undef)
14
ret void
15
16
; CHECK-LABEL: @test2
17
; CHECK-NOT: llvm.assume
18
; CHECK: unreachable
19
}
20
21
declare void @llvm.assume(i1) nounwind
22