OSDN Git Service

[ThinLTO] Fix data race in test #2
authorEugene Leviant <eleviant@accesssoftek.com>
Fri, 16 Feb 2018 17:25:03 +0000 (17:25 +0000)
committerEugene Leviant <eleviant@accesssoftek.com>
Fri, 16 Feb 2018 17:25:03 +0000 (17:25 +0000)
Switched to the right option (-thinlto-threads)

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

test/Transforms/PGOProfile/thinlto_samplepgo_icp3.ll

index 869a01b..3044964 100644 (file)
@@ -6,7 +6,7 @@
 
 ; Test to make sure importing and dead stripping works in the
 ; case where the target is a local function that also indirectly calls itself.
-; RUN: llvm-lto2 run -thread-model=single -save-temps -o %t3 %t.bc %t2.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2.bc,_Z6updatei,pl -r %t2.bc,fptr,l -print-imports 2>&1 | FileCheck %s --check-prefix=IMPORTS
+; RUN: llvm-lto2 run -thinlto-threads=1 -save-temps -o %t3 %t.bc %t2.bc -r %t.bc,fptr,plx -r %t.bc,main,plx -r %t2.bc,_Z6updatei,pl -r %t2.bc,fptr,l -print-imports 2>&1 | FileCheck %s --check-prefix=IMPORTS
 ; Make sure we import the promted indirectly called target
 ; IMPORTS: Import _ZL3foov.llvm.0