[llvm] [CodeGen][NPM] Port MachineBlockPlacement to NPM (PR #129828)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 5 04:58:45 PST 2025
================
@@ -1439,6 +1439,19 @@ Expected<bool> parseMachineSinkingPassOptions(StringRef Params) {
"MachineSinkingPass");
}
+Expected<bool> parseMachineBlockPlacementPassOptions(StringRef Params) {
+ bool AllowTailMerge = true;
+ if (Params == "no-tail-merge")
+ AllowTailMerge = false;
+ else if (!Params.empty() && Params != "enable-tail-merge")
----------------
arsenm wrote:
This doesn't follow the same pattern. I mean like this, no enable- https://github.com/llvm/llvm-project/blob/8c0e9adc5c1f4b1deba06d6af25c75d0c8da0557/llvm/lib/Passes/PassBuilder.cpp#L700
https://github.com/llvm/llvm-project/pull/129828
More information about the llvm-commits
mailing list