[PATCH] D127831: BasicBlockUtils: Add a new way for CreateControlFlowHub()

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 21:17:22 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:60-64
+static cl::opt<unsigned> MaxBooleansEachUnify(
+    "max-booleans-each-unify", cl::init(32), cl::Hidden,
+    cl::desc("Set the maximum number of outgoing blocks for when a boolean "
+             "value is used to record the exiting block."));
+
----------------
sameerds wrote:
> The option name and its description does not really say which utility it's meant for in this file. I would suggest a name such as "MaxBooleansInControlFlowHub" along with a mention of the control flow hub in the description.
Given this is a utility function I would expect this to be a parameter instead 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127831/new/

https://reviews.llvm.org/D127831



More information about the llvm-commits mailing list