[llvm-commits] [llvm] r166748 - in /llvm/trunk/test: BugPoint/crash-narrowfunctiontest.ll BugPoint/metadata.ll BugPoint/remove_arguments_test.ll lit.cfg
Rafael Espindola
rafael.espindola at gmail.com
Thu Oct 25 19:19:03 PDT 2012
Author: rafael
Date: Thu Oct 25 21:19:02 2012
New Revision: 166748
URL: http://llvm.org/viewvc/llvm-project?rev=166748&view=rev
Log:
Fix unexpected passes. These test do work with LTO on linux. I tested both
a cmake and an autoconf build.
Modified:
llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll
llvm/trunk/test/BugPoint/metadata.ll
llvm/trunk/test/BugPoint/remove_arguments_test.ll
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll?rev=166748&r1=166747&r2=166748&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll (original)
+++ llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll Thu Oct 25 21:19:02 2012
@@ -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 }
Modified: llvm/trunk/test/BugPoint/metadata.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/metadata.ll?rev=166748&r1=166747&r2=166748&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/metadata.ll (original)
+++ llvm/trunk/test/BugPoint/metadata.ll Thu Oct 25 21:19:02 2012
@@ -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.
Modified: llvm/trunk/test/BugPoint/remove_arguments_test.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/remove_arguments_test.ll?rev=166748&r1=166747&r2=166748&view=diff
==============================================================================
--- llvm/trunk/test/BugPoint/remove_arguments_test.ll (original)
+++ llvm/trunk/test/BugPoint/remove_arguments_test.ll Thu Oct 25 21:19:02 2012
@@ -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.
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=166748&r1=166747&r2=166748&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Oct 25 21:19:02 2012
@@ -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 @@
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
More information about the llvm-commits
mailing list