[llvm] r290736 - Replace test from using llvm-lto to use llvm-link (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 29 16:45:27 PST 2016


Author: mehdi_amini
Date: Thu Dec 29 18:45:26 2016
New Revision: 290736

URL: http://llvm.org/viewvc/llvm-project?rev=290736&view=rev
Log:
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.

Modified:
    llvm/trunk/test/ThinLTO/X86/autoupgrade.ll

Modified: llvm/trunk/test/ThinLTO/X86/autoupgrade.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/autoupgrade.ll?rev=290736&r1=290735&r2=290736&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/autoupgrade.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/autoupgrade.ll Thu Dec 29 18:45:26 2016
@@ -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'




More information about the llvm-commits mailing list