[PATCH] D128943: Function Specialization Registry
Pavle Bulatovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 30 14:01:44 PDT 2022
pavle.bulatovic created this revision.
pavle.bulatovic added a reviewer: congzhe.
Herald added subscribers: snehasish, ormris, hiraditya.
Herald added a project: All.
pavle.bulatovic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Before this patch, function specialization ID was not printed correctly when printing pass pipeline. This change fixes registering the pass.
https://reviews.llvm.org/D128943
Files:
llvm/lib/Transforms/IPO/SCCP.cpp
Index: llvm/lib/Transforms/IPO/SCCP.cpp
===================================================================
--- llvm/lib/Transforms/IPO/SCCP.cpp
+++ llvm/lib/Transforms/IPO/SCCP.cpp
@@ -139,7 +139,9 @@
namespace {
struct FunctionSpecializationLegacyPass : public ModulePass {
static char ID; // Pass identification, replacement for typeid
- FunctionSpecializationLegacyPass() : ModulePass(ID) {}
+ explicit FunctionSpecializationLegacyPass() : ModulePass(ID) {
+ initializeFunctionSpecializationLegacyPassPass(*PassRegistry::getPassRegistry());
+ }
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<AssumptionCacheTracker>();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128943.441513.patch
Type: text/x-patch
Size: 667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220630/4a559ac1/attachment.bin>
More information about the llvm-commits
mailing list