summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-12-30 00:45:26 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-12-30 00:45:26 +0000
commit07ddca829ad06432b9fe7dfee3fe34f691785ed6 (patch)
treea37de286480f4027bbf254e9f98f8b2059e3172a /test
parent5d6cc82115adeefb0f033c067bb062b30e5d7446 (diff)
Replace test from using llvm-lto to use llvm-link (NFC)
Some incoming changes in ThinLTO will break this test. Instead of relying on the heuristic to import, we force the importing to happen with llvm-link. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/ThinLTO/X86/autoupgrade.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/ThinLTO/X86/autoupgrade.ll b/test/ThinLTO/X86/autoupgrade.ll
index fd7111480f0..2d5de8e314a 100644
--- a/test/ThinLTO/X86/autoupgrade.ll
+++ b/test/ThinLTO/X86/autoupgrade.ll
@@ -1,12 +1,14 @@
; Verify that auto-upgrading intrinsics works with Lazy loaded bitcode
; Do setup work for all below tests: generate bitcode and combined index
; RUN: opt -module-summary %s -o %t.bc
-; RUN: llvm-lto -thinlto-action=thinlink -o %t3.bc %t.bc %p/Inputs/autoupgrade.bc
-
-; RUN: llvm-lto -thinlto-action=import %t.bc -thinlto-index=%t3.bc -o - | llvm-bcanalyzer -dump | FileCheck %s
; We can't use llvm-dis here, because it would do the autoupgrade itself.
+; RUN: llvm-link -summary-index=%t3.bc \
+; RUN: -import=globalfunc1:%p/Inputs/autoupgrade.bc %t.bc \
+; RUN: | llvm-bcanalyzer -dump | FileCheck %s
+
+
; CHECK-NOT: 'llvm.invariant.start'
; CHECK: record string = 'llvm.invariant.start.p0i8'
; CHECK-NOT: 'llvm.invariant.start'