mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 21:42:54 +02:00
78568b0dfc
gold in NDEBUG mode. Follow on patch for r247729 - LTO: Disable extra verify runs in release builds. llvm-svn: 247824
26 lines
703 B
LLVM
26 lines
703 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; REQUIRES: asserts
|
|
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
|
|
; RUN: --plugin-opt=disable-verify \
|
|
; RUN: --plugin-opt=-debug-pass=Arguments \
|
|
; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s
|
|
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
|
|
; RUN: --plugin-opt=-debug-pass=Arguments \
|
|
; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s -check-prefix=VERIFY
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; -disable-verify should disable output verification from the optimization
|
|
; pipeline.
|
|
; CHECK: Pass Arguments: {{.*}} -verify -ipsccp
|
|
; CHECK-NOT: -verify
|
|
|
|
; VERIFY: Pass Arguments: {{.*}} -verify {{.*}} -verify
|
|
|
|
define void @f() {
|
|
entry:
|
|
ret void
|
|
}
|