diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-11 23:26:46 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-11 23:26:46 +0000 |
commit | ae280e54a9865b82930a777b14735d7438630fa4 (patch) | |
tree | 7a55a90b355bd1f50fe088f09bc99ad80f3f7830 /llvm/test/Transforms/FunctionImport | |
parent | ea7eb841a1a9b2d15923852964b563f389bc06bc (diff) | |
download | bcm5719-llvm-ae280e54a9865b82930a777b14735d7438630fa4.tar.gz bcm5719-llvm-ae280e54a9865b82930a777b14735d7438630fa4.zip |
ThinLTO renaming: use module hash instead of position in the summary
This is more robust to changes in the link ordering.
Differential Revision: http://reviews.llvm.org/D18946
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266018
Diffstat (limited to 'llvm/test/Transforms/FunctionImport')
-rw-r--r-- | llvm/test/Transforms/FunctionImport/adjustable_threshold.ll | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/FunctionImport/funcimport.ll | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/Transforms/FunctionImport/adjustable_threshold.ll b/llvm/test/Transforms/FunctionImport/adjustable_threshold.ll index c5f4c258818..d46585ed82d 100644 --- a/llvm/test/Transforms/FunctionImport/adjustable_threshold.ll +++ b/llvm/test/Transforms/FunctionImport/adjustable_threshold.ll @@ -5,7 +5,7 @@ ; Test import with default progressive instruction factor ; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=10 -S | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIM-DEFAULT -; INSTLIM-DEFAULT: call void @staticfunc2.llvm.2() +; INSTLIM-DEFAULT: call void @staticfunc2.llvm. ; Test import with a reduced progressive instruction factor ; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=10 -import-instr-evolution-factor=0.5 -S | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIM-PROGRESSIVE diff --git a/llvm/test/Transforms/FunctionImport/funcimport.ll b/llvm/test/Transforms/FunctionImport/funcimport.ll index 0ea62021547..4bbab2ce333 100644 --- a/llvm/test/Transforms/FunctionImport/funcimport.ll +++ b/llvm/test/Transforms/FunctionImport/funcimport.ll @@ -10,7 +10,7 @@ ; Test import with smaller instruction limit ; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -import-instr-limit=5 -S | FileCheck %s --check-prefix=CHECK --check-prefix=INSTLIM5 -; INSTLIM5-NOT: @staticfunc.llvm.2 +; INSTLIM5-NOT: @staticfunc.llvm. define i32 @main() #0 { entry: @@ -48,8 +48,8 @@ declare i32 @referencestatics(...) #1 ; should in turn be imported as a promoted/renamed and hidden function. ; Ensure that the call is to the properly-renamed function. ; INSTLIMDEF-DAG: Import staticfunc -; INSTLIMDEF-DAG: %call = call i32 @staticfunc.llvm.2() -; INSTLIMDEF-DAG: define available_externally hidden i32 @staticfunc.llvm.2() +; INSTLIMDEF-DAG: %call = call i32 @staticfunc.llvm. +; INSTLIMDEF-DAG: define available_externally hidden i32 @staticfunc.llvm. ; INSTLIMDEF-DAG: Import referenceglobals ; CHECK-DAG: define available_externally i32 @referenceglobals(i32 %i) @@ -74,17 +74,17 @@ declare void @callfuncptr(...) #1 ; Ensure that all uses of local variable @P which has used in setfuncptr ; and callfuncptr are to the same promoted/renamed global. -; CHECK-DAG: @P.llvm.2 = external hidden global void ()* -; CHECK-DAG: %0 = load void ()*, void ()** @P.llvm.2, -; CHECK-DAG: store void ()* @staticfunc2.llvm.2, void ()** @P.llvm.2, +; CHECK-DAG: @P.llvm.{{.*}} = external hidden global void ()* +; CHECK-DAG: %0 = load void ()*, void ()** @P.llvm. +; CHECK-DAG: store void ()* @staticfunc2.llvm.{{.*}}, void ()** @P.llvm. ; Won't import weak func ; CHECK-DAG: declare void @weakfunc(...) declare void @weakfunc(...) #1 ; INSTLIMDEF-DAG: Import funcwithpersonality -; INSTLIMDEF-DAG: define available_externally hidden void @funcwithpersonality.llvm.2() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { -; INSTLIM5-DAG: declare hidden void @funcwithpersonality.llvm.2() +; INSTLIMDEF-DAG: define available_externally hidden void @funcwithpersonality.llvm.{{.*}}() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) { +; INSTLIM5-DAG: declare hidden void @funcwithpersonality.llvm.{{.*}}() ; INSTLIMDEF-DAG: Import globalfunc2 ; INSTLIMDEF-DAG: 9 function-import - Number of functions imported |