aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorNick Anderson <nickleus27@gmail.com>2024-01-08 22:32:59 -0800
committerGitHub <noreply@github.com>2024-01-09 13:32:59 +0700
commitf1ec0d12bb0843f0deab83ef2b5cf1339cbc4f0b (patch)
tree3c00db7d92198f4977b7a6080e687fa231ea8e79 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent38ce770ef13131dce92a76ff80e6d5caba2d8422 (diff)
downloadllvm-f1ec0d12bb0843f0deab83ef2b5cf1339cbc4f0b.zip
llvm-f1ec0d12bb0843f0deab83ef2b5cf1339cbc4f0b.tar.gz
llvm-f1ec0d12bb0843f0deab83ef2b5cf1339cbc4f0b.tar.bz2
Port CodeGenPrepare to new pass manager (and BasicBlockSectionsProfil… (#77182)
Port CodeGenPrepare to new pass manager and dependency BasicBlockSectionsProfileReader Fixes: #75380 Co-authored-by: Krishna-13-cyber <84722531+Krishna-13-cyber@users.noreply.github.com>
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 4003a08..3bbc792 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -978,7 +978,7 @@ void TargetPassConfig::addPassesToHandleExceptions() {
/// before exception handling preparation passes.
void TargetPassConfig::addCodeGenPrepare() {
if (getOptLevel() != CodeGenOptLevel::None && !DisableCGP)
- addPass(createCodeGenPreparePass());
+ addPass(createCodeGenPrepareLegacyPass());
}
/// Add common passes that perform LLVM IR to IR transforms in preparation for
@@ -1271,7 +1271,7 @@ void TargetPassConfig::addMachinePasses() {
// together. Update this check once we have addressed any issues.
if (TM->getBBSectionsType() != llvm::BasicBlockSection::None) {
if (TM->getBBSectionsType() == llvm::BasicBlockSection::List) {
- addPass(llvm::createBasicBlockSectionsProfileReaderPass(
+ addPass(llvm::createBasicBlockSectionsProfileReaderWrapperPass(
TM->getBBSectionsFuncListBuf()));
addPass(llvm::createBasicBlockPathCloningPass());
}