diff options
author | Paul Kirth <paulkirth@google.com> | 2022-07-27 21:38:11 +0000 |
---|---|---|
committer | Paul Kirth <paulkirth@google.com> | 2022-07-27 21:38:11 +0000 |
commit | 6e9bab71b626183211625f150cc25fa22cb0973c (patch) | |
tree | 0980e161128b3a6244ef0172d76f70fb38bcc1e5 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 300c9a78819b4608b96bb26f9320bea6b8a0c4d0 (diff) | |
download | llvm-6e9bab71b626183211625f150cc25fa22cb0973c.zip llvm-6e9bab71b626183211625f150cc25fa22cb0973c.tar.gz llvm-6e9bab71b626183211625f150cc25fa22cb0973c.tar.bz2 |
Revert "[llvm][NFC] Refactor code to use ProfDataUtils"
This reverts commit 300c9a78819b4608b96bb26f9320bea6b8a0c4d0.
We will reland once these issues are ironed out.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp index 03272e5f..349063d 100644 --- a/llvm/lib/Transforms/Utils/LoopUtils.cpp +++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp @@ -38,7 +38,6 @@ #include "llvm/IR/MDBuilder.h" #include "llvm/IR/Module.h" #include "llvm/IR/PatternMatch.h" -#include "llvm/IR/ProfDataUtils.h" #include "llvm/IR/ValueHandle.h" #include "llvm/InitializePasses.h" #include "llvm/Pass.h" @@ -790,7 +789,7 @@ getEstimatedTripCount(BranchInst *ExitingBranch, Loop *L, // know the number of times the backedge was taken, vs. the number of times // we exited the loop. uint64_t LoopWeight, ExitWeight; - if (!extractBranchWeights(*ExitingBranch, LoopWeight, ExitWeight)) + if (!ExitingBranch->extractProfMetadata(LoopWeight, ExitWeight)) return None; if (L->contains(ExitingBranch->getSuccessor(1))) |