[llvm] [Memprof] Reduce test binary sizes for memprof tests. (PR #97114)

Matthew Weingarten via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 15:14:21 PDT 2024


mattweingarten wrote:

> LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all".
> 
> Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/1192
> 
> Here is the relevant piece of the build log for the reference:
> 
> ```
> Step 6 (test-build-unified-tree-check-all) failure: test (failure)
> ******************** TEST 'LLVM :: Transforms/PGOProfile/memprof_internal_linkage.ll' FAILED ********************
> Exit Code: 1
> 
> Command Output (stderr):
> --
> RUN: at line 11: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llvm-profdata merge /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/Inputs/memprof_internal_linkage.memprofraw --profiled-binary /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/Inputs/memprof_internal_linkage.exe -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/Transforms/PGOProfile/Output/memprof_internal_linkage.ll.tmp.memprofdata
> + /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llvm-profdata merge /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/Inputs/memprof_internal_linkage.memprofraw --profiled-binary /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/Inputs/memprof_internal_linkage.exe -o /b/1/clang-x86_64-debian-fast/llvm.obj/test/Transforms/PGOProfile/Output/memprof_internal_linkage.ll.tmp.memprofdata
> RUN: at line 12: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt < /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/memprof_internal_linkage.ll -passes='memprof-use<profile-filename=/b/1/clang-x86_64-debian-fast/llvm.obj/test/Transforms/PGOProfile/Output/memprof_internal_linkage.ll.tmp.memprofdata>' -S | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/memprof_internal_linkage.ll
> + /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt '-passes=memprof-use<profile-filename=/b/1/clang-x86_64-debian-fast/llvm.obj/test/Transforms/PGOProfile/Output/memprof_internal_linkage.ll.tmp.memprofdata>' -S
> + /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/memprof_internal_linkage.ll
> /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/memprof_internal_linkage.ll:15:10: error: CHECK: expected string not found in input
> ; CHECK: attributes #[[ATTR]] = { builtin allocsize(0) "memprof"="notcold" }
>          ^
> <stdin>:23:68: note: scanning from here
>  %call = call noalias noundef nonnull ptr @_Znam(i64 noundef 20) #5, !dbg !17
>                                                                    ^
> <stdin>:23:68: note: with "ATTR" equal to "5"
>  %call = call noalias noundef nonnull ptr @_Znam(i64 noundef 20) #5, !dbg !17
>                                                                    ^
> <stdin>:38:1: note: possible intended match here
> attributes #2 = { nobuiltin allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
> ^
> 
> Input file: <stdin>
> Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/PGOProfile/memprof_internal_linkage.ll
> 
> -dump-input=help explains the following input dump.
> 
> Input was:
> <<<<<<
>             .
>             .
>             .
>            18:  
>            19: ; Function Attrs: mustprogress noinline optnone uwtable 
>            20: define internal void @_ZL3foov.__uniq.50354172613129440706982166615384819716() #1 !dbg !16 { 
>            21: entry: 
>            22:  %a = alloca ptr, align 8 
>            23:  %call = call noalias noundef nonnull ptr @_Znam(i64 noundef 20) #5, !dbg !17 
> check:15'0                                                                        X~~~~~~~~~~ error: no match found
> check:15'1                                                                                    with "ATTR" equal to "5"
>            24:  store ptr %call, ptr %a, align 8, !dbg !18 
> check:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>            25:  %0 = load ptr, ptr %a, align 8, !dbg !19 
> check:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>            26:  call void @llvm.memset.p0.i64(ptr align 4 %0, i8 0, i64 5, i1 false), !dbg !20 
> check:15'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>            27:  ret void, !dbg !21 
> check:15'0     ~~~~~~~~~~~~~~~~~~~~
>            28: } 
> ...
> ```

Fixed in: https://github.com/llvm/llvm-project/pull/97119

https://github.com/llvm/llvm-project/pull/97114


More information about the llvm-commits mailing list