[llvm] 30ad7b5 - [test] Fix profiling.ll
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 3 15:18:51 PST 2021
Author: Fangrui Song
Date: 2021-03-03T15:18:44-08:00
New Revision: 30ad7b5dadcd90ce8df240f1fa74ee2e98a875dc
URL: https://github.com/llvm/llvm-project/commit/30ad7b5dadcd90ce8df240f1fa74ee2e98a875dc
DIFF: https://github.com/llvm/llvm-project/commit/30ad7b5dadcd90ce8df240f1fa74ee2e98a875dc.diff
LOG: [test] Fix profiling.ll
`__llvm_prf_nm` is compressed if zlib is available. In addition, its size may not be that stable.
Added:
Modified:
llvm/test/Instrumentation/InstrProfiling/profiling.ll
Removed:
################################################################################
diff --git a/llvm/test/Instrumentation/InstrProfiling/profiling.ll b/llvm/test/Instrumentation/InstrProfiling/profiling.ll
index a1f1424285da..44262ddf39ee 100644
--- a/llvm/test/Instrumentation/InstrProfiling/profiling.ll
+++ b/llvm/test/Instrumentation/InstrProfiling/profiling.ll
@@ -62,7 +62,7 @@ declare void @llvm.instrprof.increment(i8*, i64, i32, i32)
; ELF_GENERIC-NEXT: call void @__llvm_profile_register_function(i8* bitcast ({ i64, i64, i64*, i8*, i8*, i32, [2 x i16] }* @__profd_foo to i8*))
; ELF_GENERIC-NEXT: call void @__llvm_profile_register_function(i8* bitcast ({ i64, i64, i64*, i8*, i8*, i32, [2 x i16] }* @__profd_bar to i8*))
; ELF_GENERIC-NEXT: call void @__llvm_profile_register_function(i8* bitcast ({ i64, i64, i64*, i8*, i8*, i32, [2 x i16] }* @__profd_baz to i8*))
-; ELF_GENERIC-NEXT: call void @__llvm_profile_register_names_function(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @__llvm_prf_nm, i32 0, i32 0), i64 19)
+; ELF_GENERIC-NEXT: call void @__llvm_profile_register_names_function(i8* getelementptr inbounds {{.*}} @__llvm_prf_nm
; ELF_GENERIC-NEXT: ret void
; ELF_GENERIC-NEXT: }
More information about the llvm-commits
mailing list