mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
495950222a
First step after e1133179587dd895962a2fe4d6eb0cb1e63b5ee2, in these tests, DomTree is valid afterwards, so mark them as such, so that they don't regress. In further steps, SimplifyCFG transforms shall taught to preserve DomTree, in as small steps as possible.
23 lines
434 B
LLVM
23 lines
434 B
LLVM
; RUN: opt -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S < %s | FileCheck %s
|
|
|
|
define void @test1() {
|
|
call void @llvm.assume(i1 0)
|
|
ret void
|
|
|
|
; CHECK-LABEL: @test1
|
|
; CHECK-NOT: llvm.assume
|
|
; CHECK: unreachable
|
|
}
|
|
|
|
define void @test2() {
|
|
call void @llvm.assume(i1 undef)
|
|
ret void
|
|
|
|
; CHECK-LABEL: @test2
|
|
; CHECK-NOT: llvm.assume
|
|
; CHECK: unreachable
|
|
}
|
|
|
|
declare void @llvm.assume(i1) nounwind
|
|
|