[llvm] [NFC][PGO] Factor downscaling of branch weights out of `Instrumentation` into `ProfileData` (PR #153735)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 14 22:50:27 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `mlir-s390x-linux` running on `systemz-1` while building `llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
11.612 [4520/4/470] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/StructuralHash.cpp.o
11.650 [4519/4/471] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Type.cpp.o
11.676 [4518/4/472] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/TypedPointerType.cpp.o
11.700 [4517/4/473] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/TypeFinder.cpp.o
11.720 [4516/4/474] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Use.cpp.o
11.743 [4515/4/475] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/User.cpp.o
11.768 [4514/4/476] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Value.cpp.o
11.789 [4513/4/477] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ValueSymbolTable.cpp.o
11.806 [4512/4/478] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/VectorTypeUtils.cpp.o
13.173 [4511/4/479] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/lib/IR -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/lib/IR -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/build/include -I/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/ProfDataUtils.cpp.o -c /home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/lib/IR/ProfDataUtils.cpp
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/lib/IR/ProfDataUtils.cpp: In function 'llvm::SmallVector<unsigned int> llvm::downscaleWeights(llvm::ArrayRef<long unsigned int>, std::optional<long unsigned int>)':
/home/uweigand/sandbox/buildbot/mlir-s390x-linux/llvm-project/llvm/lib/IR/ProfDataUtils.cpp:282:10: error: could not convert 'DownscaledWeights' from 'SmallVector<[...],4>' to 'SmallVector<[...],12>'
  282 |   return DownscaledWeights;
      |          ^~~~~~~~~~~~~~~~~
      |          |
      |          SmallVector<[...],4>
14.151 [4511/3/480] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Instructions.cpp.o
23.481 [4511/2/481] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Metadata.cpp.o
24.685 [4511/1/482] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Verifier.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list