xref: /llvm-project/llvm/test/LTO/X86/disable-verify.ll (revision 2121dc5b158b0d11667a5d8c39f0121b869ca1c5)
1; RUN: llvm-as < %s >%t.bc
2; RUN: llvm-lto -debug-pass-manager -exported-symbol=_f -o /dev/null %t.bc 2>&1 -disable-verify | FileCheck %s
3; RUN: llvm-lto -debug-pass-manager -exported-symbol=_f -o /dev/null %t.bc 2>&1 | FileCheck %s -check-prefix=VERIFY
4
5target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
6target triple = "x86_64-apple-macosx10.10.0"
7
8; -disable-verify should disable verification from the optimization pipeline.
9; CHECK-NOT: Running pass: VerifierPass
10
11; VERIFY: Running pass: VerifierPass
12
13define void @f() {
14entry:
15  ret void
16}
17