llvm.org GIT mirror llvm / d2930d3
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 Rafael Espindola 6 years ago
4 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11 ;
22 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
33 ; REQUIRES: loadable_module
4 ; XFAIL: lto
4 ; XFAIL: lto_on_osx
55
66 define i32 @foo() { ret i32 1 }
77
0 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null
11 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
22 ; REQUIRES: loadable_module
3 ; XFAIL: lto
3 ; XFAIL: lto_on_osx
44
55 ; Bugpoint should keep the call's metadata attached to the call.
66
0 ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crashcalls -silence-passes
11 ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s
22 ; REQUIRES: loadable_module
3 ; XFAIL: lto
3 ; XFAIL: lto_on_osx
44
55 ; Test to make sure that arguments are removed from the function if they are
66 ; unnecessary. And clean up any types that that frees up too.
44 import os
55 import sys
66 import re
7 import platform
78
89 # name: The name of this test suite.
910 config.name = 'LLVM'
240241 if loadable_module:
241242 config.available_features.add('loadable_module')
242243
243 # LTO
244 if config.lto_is_enabled == "1":
245 config.available_features.add('lto')
244 # LTO on OS X
245 if config.lto_is_enabled == "1" and platform.system() == "Darwin":
246 config.available_features.add('lto_on_osx')
246247
247248 # llc knows whether he is compiled with -DNDEBUG.
248249 import subprocess