[llvm] [MemProf] Reduce cloning overhead by sharing nodes when possible (PR #99832)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 20:15:19 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/3286

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc      -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -emit-llvm-bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /b/1/llvm-x86_64-debian-dylib/build/bin/opt /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
RUN: at line 11: /b/1/llvm-x86_64-debian-dylib/build/bin/clang-offload-packager -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang-offload-packager -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -S -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s      -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa      -fembed-offload-object=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -S -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fembed-offload-object=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
RUN: at line 17: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1as -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      -triple x86_64-unknown-linux-gnu -filetype obj -target-cpu x86-64      /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1as -o /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o -triple x86_64-unknown-linux-gnu -filetype obj -target-cpu x86-64 /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s
RUN: at line 22: /b/1/llvm-x86_64-debian-dylib/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run      --linker-path=/usr/bin/true /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o      --offload-opt=-load-pass-plugin=/b/1/llvm-x86_64-debian-dylib/build/lib/Bye.so --offload-opt=-wave-goodbye      --offload-opt=-passes="function(goodbye),module(inline)" 2>&1 |    /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck -match-full-lines -check-prefixes=OUT /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang-linker-wrapper -o a.out --embed-bitcode --dry-run --linker-path=/usr/bin/true /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o --offload-opt=-load-pass-plugin=/b/1/llvm-x86_64-debian-dylib/build/lib/Bye.so --offload-opt=-wave-goodbye '--offload-opt=-passes=function(goodbye),module(inline)'
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c:47:9: error: OUT: expected string not found in input
// OUT: Bye: f
        ^
<stdin>:1:1: note: scanning from here
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-s1vjja5y/a.out.amdgcn.native-ecf63c.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-s1vjja5y/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--26ba9c.o -Wl,--lto-emit-llvm
^
<stdin>:1:181: note: possible intended match here
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-s1vjja5y/a.out.amdgcn.native-ecf63c.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-s1vjja5y/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--26ba9c.o -Wl,--lto-emit-llvm
                                                                                                                                                                                    ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/linker-wrapper-passes.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            1:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang" --no-default-config -o /tmp/lit-tmp-s1vjja5y/a.out.amdgcn.native-ecf63c.img --target=amdgcn-amd-amdhsa -mcpu=native -O2 -Wl,--no-undefined /tmp/lit-tmp-s1vjja5y/host-x86_64-unknown-linux-gnu-amdgcn-amd-amdhsa--26ba9c.o -Wl,--lto-emit-llvm 
check:47'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:47'1                                                                                                                                                                                         ?                                                                                                            possible intended match
            2:  "/usr/bin/true" -o a.out /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.o 
check:47'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

********************


```

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


More information about the llvm-commits mailing list