mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
Fix unexpected passes. These test do work with LTO on linux. I tested both
a cmake and an autoconf build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30675b12fd
commit
d2930d364a
@ -2,7 +2,7 @@
|
||||
;
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
|
||||
; REQUIRES: loadable_module
|
||||
; XFAIL: lto
|
||||
; XFAIL: lto_on_osx
|
||||
|
||||
define i32 @foo() { ret i32 1 }
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
|
||||
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
||||
; REQUIRES: loadable_module
|
||||
; XFAIL: lto
|
||||
; XFAIL: lto_on_osx
|
||||
|
||||
; Bugpoint should keep the call's metadata attached to the call.
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
|
||||
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
|
||||
; REQUIRES: loadable_module
|
||||
; XFAIL: lto
|
||||
; XFAIL: lto_on_osx
|
||||
|
||||
; Test to make sure that arguments are removed from the function if they are
|
||||
; unnecessary. And clean up any types that that frees up too.
|
||||
|
@ -5,6 +5,7 @@
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import platform
|
||||
|
||||
# name: The name of this test suite.
|
||||
config.name = 'LLVM'
|
||||
@ -241,9 +242,9 @@ else:
|
||||
if loadable_module:
|
||||
config.available_features.add('loadable_module')
|
||||
|
||||
# LTO
|
||||
if config.lto_is_enabled == "1":
|
||||
config.available_features.add('lto')
|
||||
# LTO on OS X
|
||||
if config.lto_is_enabled == "1" and platform.system() == "Darwin":
|
||||
config.available_features.add('lto_on_osx')
|
||||
|
||||
# llc knows whether he is compiled with -DNDEBUG.
|
||||
import subprocess
|
||||
|
Loading…
x
Reference in New Issue
Block a user