[llvm] [CodeGen][NPM] Update BranchFolderLegacy make tail merge configurable via flag (PR #135277)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 10 22:01:04 PDT 2025
================
@@ -152,7 +162,8 @@ bool BranchFolderLegacy::runOnMachineFunction(MachineFunction &MF) {
// TailMerge can create jump into if branches that make CFG irreducible for
// HW that requires structurized CFG.
bool EnableTailMerge = !MF.getTarget().requiresStructuredCFG() &&
- PassConfig->getEnableTailMerge();
+ PassConfig->getEnableTailMerge() &&
----------------
optimisan wrote:
Yes, it can be passed as the `EnableTailMerge` parameter when TargetPassConfig creates this pass instance (where currently this is done through its ID).
https://github.com/llvm/llvm-project/pull/135277
More information about the llvm-commits
mailing list