diff options
author | Paul Kirth <paulkirth@google.com> | 2024-04-30 22:53:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 13:53:04 -0700 |
commit | 7538df90aee11603bce5146a3f34c06e9ef3f793 (patch) | |
tree | f70200025fad15cf2559bb80c11327a3ee04693a /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 05d04f0a057bc06324c02e00c2c73ee354999dde (diff) | |
download | llvm-7538df90aee11603bce5146a3f34c06e9ef3f793.zip llvm-7538df90aee11603bce5146a3f34c06e9ef3f793.tar.gz llvm-7538df90aee11603bce5146a3f34c06e9ef3f793.tar.bz2 |
[llvm][profdata][NFC] Support 64-bit weights in ProfDataUtils (#86607)
Since some places, like SimplifyCFG, work with 64-bit weights, we supply
an API in ProfDataUtils to extract the weights accordingly.
We change the API slightly to disambiguate the 64-bit version from the
32-bit version.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp index 0f55af3..5cd9641 100644 --- a/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp @@ -287,7 +287,7 @@ static void updateBranchWeights(BranchInst &PreHeaderBI, BranchInst &LoopBI, return; SmallVector<uint32_t, 2> Weights; - extractFromBranchWeightMD(WeightMD, Weights); + extractFromBranchWeightMD32(WeightMD, Weights); if (Weights.size() != 2) return; uint32_t OrigLoopExitWeight = Weights[0]; |