Skip to content

[llvm-debuginfo-analyzer] Remove superfluous link components. #118052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

CarlosAlbertoEnciso
Copy link
Member

As 'LLVM_TARGETS_TO_BUILD' control which targets are enabled, the lines:

AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos

are redundant.

As 'LLVM_TARGETS_TO_BUILD' control which targets are enabled,
the lines:

  AllTargetsDescs
  AllTargetsDisassemblers
  AllTargetsInfos

are redundant.
@llvmbot
Copy link
Member

llvmbot commented Nov 29, 2024

@llvm/pr-subscribers-debuginfo

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Changes

As 'LLVM_TARGETS_TO_BUILD' control which targets are enabled, the lines:

AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos

are redundant.


Full diff: https://github.com/llvm/llvm-project/pull/118052.diff

1 Files Affected:

  • (modified) llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt (-3)
diff --git a/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt b/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
index 921453ccef6fd7..42a4b72229483c 100644
--- a/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
+++ b/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
@@ -1,8 +1,5 @@
 set(LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
-  AllTargetsDescs
-  AllTargetsDisassemblers
-  AllTargetsInfos
   AsmPrinter
   DebugInfoDWARF
   DebugInfoLogicalView

@llvmbot
Copy link
Member

llvmbot commented Nov 29, 2024

@llvm/pr-subscribers-llvm-binary-utilities

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Changes

As 'LLVM_TARGETS_TO_BUILD' control which targets are enabled, the lines:

AllTargetsDescs
AllTargetsDisassemblers
AllTargetsInfos

are redundant.


Full diff: https://github.com/llvm/llvm-project/pull/118052.diff

1 Files Affected:

  • (modified) llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt (-3)
diff --git a/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt b/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
index 921453ccef6fd7..42a4b72229483c 100644
--- a/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
+++ b/llvm/unittests/DebugInfo/LogicalView/CMakeLists.txt
@@ -1,8 +1,5 @@
 set(LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
-  AllTargetsDescs
-  AllTargetsDisassemblers
-  AllTargetsInfos
   AsmPrinter
   DebugInfoDWARF
   DebugInfoLogicalView

@CarlosAlbertoEnciso CarlosAlbertoEnciso added the skip-precommit-approval PR for CI feedback, not intended for review label Nov 29, 2024
@CarlosAlbertoEnciso CarlosAlbertoEnciso merged commit d7791f5 into llvm:main Nov 29, 2024
13 checks passed
@CarlosAlbertoEnciso CarlosAlbertoEnciso deleted the remove-redundant-libraries branch November 29, 2024 08:52
@llvm-ci
Copy link
Collaborator

llvm-ci commented Nov 30, 2024

LLVM Buildbot has detected a new failure on builder clang-ppc64-aix running on aix-ppc64 while building llvm at step 3 "clean-build-dir".

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

Here is the relevant piece of the build log for the reference
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Profile-powerpc :: ContinuousSyncMode/online-merging.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 6: rm -rf /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir && mkdir -p /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir && cd /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir
+ rm -rf /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir
+ mkdir -p /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir
+ cd /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir
RUN: at line 9: echo "void dso1(void) {}" > dso1.c
+ echo 'void dso1(void) {}'
RUN: at line 10: echo "void dso2(void) {}" > dso2.c
+ echo 'void dso2(void) {}'
RUN: at line 11: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang   -m32   -fprofile-generate -mllvm -runtime-counter-relocation -shared -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso1.dylib dso1.c -fprofile-update=atomic
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang -m32 -fprofile-generate -mllvm -runtime-counter-relocation -shared -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso1.dylib dso1.c -fprofile-update=atomic
RUN: at line 12: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang   -m32   -fprofile-generate -mllvm -runtime-counter-relocation -shared -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso2.dylib dso2.c -fprofile-update=atomic
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang -m32 -fprofile-generate -mllvm -runtime-counter-relocation -shared -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso2.dylib dso2.c -fprofile-update=atomic
RUN: at line 13: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang   -m32   -fprofile-generate -mllvm -runtime-counter-relocation -o main.exe /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso1.dylib /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso2.dylib -fprofile-update=atomic
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/./bin/clang -m32 -fprofile-generate -mllvm -runtime-counter-relocation -o main.exe /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso1.dylib /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/dso2.dylib -fprofile-update=atomic
RUN: at line 18: env LLVM_PROFILE_FILE="/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw"  /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/main.exe nospawn
+ env LLVM_PROFILE_FILE=/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/main.exe nospawn
RUN: at line 19: llvm-profdata merge -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir
+ llvm-profdata merge -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir
RUN: at line 20: llvm-profdata show --counts --all-functions /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata | FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c -check-prefix=ROUND1
+ llvm-profdata show --counts --all-functions /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata
+ FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c -check-prefix=ROUND1
RUN: at line 42: env LLVM_PROFILE_FILE="/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw"  /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/main.exe spawn 'LLVM_PROFILE_FILE=/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw'
+ env LLVM_PROFILE_FILE=/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/main.exe spawn LLVM_PROFILE_FILE=/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir/%m%c.profraw
RUN: at line 43: llvm-profdata merge -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir
+ llvm-profdata merge -o /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.dir/profdir
RUN: at line 44: llvm-profdata show --counts --all-functions /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata | FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c -check-prefix=ROUND2
+ llvm-profdata show --counts --all-functions /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/runtimes/runtimes-bins/compiler-rt/test/profile/Profile-powerpc/ContinuousSyncMode/Output/online-merging.c.tmp.profdata
+ FileCheck /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c -check-prefix=ROUND2
/home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c:54:16: error: ROUND2-DAG: expected string not found in input
// ROUND2-DAG: Block counts: [97]
               ^
<stdin>:13:20: note: scanning from here
 Block counts: [97]
                   ^
<stdin>:14:12: note: possible intended match here
Instrumentation level: IR entry_first = 0
           ^

Input file: <stdin>
Check file: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c

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

Input was:
<<<<<<
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants