This ports the MergeFunctions pass to the NewPM. This was rather straightforward, as no analyses are used.
Additionally MergeFunctions needs to be conditionally enabled in the PassBuilder, but I left that part out of this patch.
Paths
| Differential D72537
[NewPM] Port MergeFunctions pass ClosedPublic Authored by nikic on Jan 10 2020, 1:11 PM.
Details
Summary This ports the MergeFunctions pass to the NewPM. This was rather straightforward, as no analyses are used. Additionally MergeFunctions needs to be conditionally enabled in the PassBuilder, but I left that part out of this patch.
Diff Detail Event TimelineComment Actions LGTM with just one quick question
This revision is now accepted and ready to land.Jan 13 2020, 10:58 AM Closed by commit rG410331869def: [NewPM] Port MergeFunctions pass (authored by nikic). · Explain WhyJan 14 2020, 12:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 237420 llvm/include/llvm/InitializePasses.h
llvm/include/llvm/Transforms/IPO/MergeFunctions.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/IPO/IPO.cpp
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/test/Transforms/MergeFunc/merge-block-address.ll
|
Hello, the comment doesn't seem to be appropriate according to what the MergeFunctionsPass does. Should it be removed? Please correct me if I'm wrong. Thanks.