[llvm] Add setBranchWeigths convenience function. NFC (PR #72446)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 14:59:27 PST 2023


================
@@ -1437,12 +1437,11 @@ void PGOUseFunc::populateCoverage(IndexedInstrProfReader *PGOReader) {
     // If A is uncovered, set weight=1.
     // This setup will allow BFI to give nonzero profile counts to only covered
     // blocks.
-    SmallVector<unsigned, 4> Weights;
+    SmallVector<uint32_t, 4> Weights;
----------------
ilovepi wrote:

good catch!

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


More information about the llvm-commits mailing list