[llvm] Fix after #153735 (PR #153749)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 14 23:15:19 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Mircea Trofin (mtrofin)
<details>
<summary>Changes</summary>
Example failure <https://lab.llvm.org/buildbot/#/builders/105/builds/11073>
Seems compiler-dependent.
---
Full diff: https://github.com/llvm/llvm-project/pull/153749.diff
1 Files Affected:
- (modified) llvm/lib/IR/ProfDataUtils.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/IR/ProfDataUtils.cpp b/llvm/lib/IR/ProfDataUtils.cpp
index 489fbfef00e4d..c90a1efb9a54a 100644
--- a/llvm/lib/IR/ProfDataUtils.cpp
+++ b/llvm/lib/IR/ProfDataUtils.cpp
@@ -276,7 +276,7 @@ SmallVector<uint32_t> downscaleWeights(ArrayRef<uint64_t> Weights,
: *llvm::max_element(Weights);
assert(MaxCount > 0 && "Bad max count");
uint64_t Scale = calculateCountScale(MaxCount);
- SmallVector<unsigned, 4> DownscaledWeights;
+ SmallVector<unsigned> DownscaledWeights;
for (const auto &ECI : Weights)
DownscaledWeights.push_back(scaleBranchCount(ECI, Scale));
return DownscaledWeights;
``````````
</details>
https://github.com/llvm/llvm-project/pull/153749
More information about the llvm-commits
mailing list