Fix unexpected passes. These test do work with LTO on linux. I tested both
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Oct 2012 02:19:02 +0000 (02:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 26 Oct 2012 02:19:02 +0000 (02:19 +0000)
a cmake and an autoconf build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166748 91177308-0d34-0410-b5e6-96231b3b80d8

test/BugPoint/crash-narrowfunctiontest.ll
test/BugPoint/metadata.ll
test/BugPoint/remove_arguments_test.ll
test/lit.cfg

index 9df823ab97314af65f1f360850d747b8e53f63a6..c8128369573152ad6eac58731fcbc22eef36ef8e 100644 (file)
@@ -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 }
 
index 98c79ee03a6306f143f5e7034566f24992229f7b..6dc9574bbe4b19e5ebf00a6c147cc119a690eb85 100644 (file)
@@ -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.
 
index 13aa9c5a653ad9d85a0843fac5f763ce404f7f34..5a45f846e1039f79ea7c4bf6f51eaf0c008c969b 100644 (file)
@@ -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.
index 7e6760e95ae5471df92b265b463393d81760a9d2..7f26cdf03d62f35e478699bb4bc617a6307b86a3 100644 (file)
@@ -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