[llvm] Add a pass to collect dropped var stats for MIR. (PR #115566)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 17:12:47 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `llvm` at step 4 "annotate".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1060/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1061/1348] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1062/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CompressionTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1063/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1064/1348] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googletest/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffat-lto-objects -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=default  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[1065/1348] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1066/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1067/1348] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1068/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1069/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ARMAttributeParser.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1070/1348] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1071/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
Step 7 (check) failure: check (failure)
...
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1060/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AllocatorTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1061/1348] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/InstructionsTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1062/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CompressionTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1063/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/AlignmentTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1064/1348] Building CXX object unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o
FAILED: unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR -I/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-hed5i68_/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googletest/include -I/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffat-lto-objects -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=default  -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-rtti -Wno-suggest-override -MD -MT unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -MF unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o.d -o unittests/MIR/CMakeFiles/MIRTests.dir/DroppedVariableStatsMIRTest.cpp.o -c /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:35:17: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   35 | std::unique_ptr<LLVMTargetMachine>
      |                 ^~~~~~~~~~~~~~~~~
      |                 TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:42:26: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   42 |   return std::unique_ptr<LLVMTargetMachine>(
      |                          ^~~~~~~~~~~~~~~~~
      |                          TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/MIR/DroppedVariableStatsMIRTest.cpp:43:19: error: unknown type name 'LLVMTargetMachine'; did you mean 'TargetMachine'?
   43 |       static_cast<LLVMTargetMachine *>(T->createTargetMachine(
      |                   ^~~~~~~~~~~~~~~~~
      |                   TargetMachine
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/include/llvm/Target/TargetMachine.h:77:7: note: 'TargetMachine' declared here
   77 | class TargetMachine {
      |       ^
3 errors generated.
[1065/1348] Building CXX object unittests/ObjectYAML/CMakeFiles/ObjectYAMLTests.dir/DXContainerYAMLTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1066/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CachePruningTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1067/1348] Building CXX object unittests/ProfileData/CMakeFiles/ProfileDataTests.dir/BPFunctionNodeTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1068/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/CheckedArithmeticTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1069/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/ARMAttributeParser.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1070/1348] Building CXX object unittests/Object/CMakeFiles/ObjectTests.dir/XCOFFObjectFileTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1071/1348] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/BranchProbabilityTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]

```

</details>

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


More information about the llvm-commits mailing list