[llvm] [CodeGen][NPM] Update BranchFolderLegacy make tail merge configurable via flag (PR #135277)
Mikhail R. Gadelha via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 09:49:29 PDT 2025
================
@@ -707,6 +707,10 @@ void TargetPassConfig::addPass(Pass *P) {
// and shouldn't reference it.
AnalysisID PassID = P->getPassID();
+ IdentifyingPassPtr TargetID = getPassSubstitution(PassID);
+ if (!overridePass(PassID, TargetID).isValid())
+ return;
----------------
mikhailramalho wrote:
Sorry, I don't get it... What do you mean?
I had to add this to check if the pass was disabled. It's a copy-and-paste from the `addPass(AnalysisID PassID)` method.
https://github.com/llvm/llvm-project/pull/135277
More information about the llvm-commits
mailing list