aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2024-04-30 22:53:04 +0200
committerGitHub <noreply@github.com>2024-04-30 13:53:04 -0700
commit7538df90aee11603bce5146a3f34c06e9ef3f793 (patch)
treef70200025fad15cf2559bb80c11327a3ee04693a /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parent05d04f0a057bc06324c02e00c2c73ee354999dde (diff)
downloadllvm-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.cpp2
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];