[llvm] [CodeGen][BranchFolding] Add options to control common hoisting and block reordering (PR #205704)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 20:40:58 PDT 2026


================
@@ -78,6 +78,20 @@ static cl::opt<cl::boolOrDefault>
     FlagEnableTailMerge("enable-tail-merge",
                         cl::init(cl::boolOrDefault::BOU_UNSET), cl::Hidden);
 
+// Override the common-code hoisting sub-phase of BranchFolding. Unset by
+// default, in which case the value configured by the caller is used.
+static cl::opt<cl::boolOrDefault> FlagEnableHoistCommonCode(
----------------
wangpc-pp wrote:

Please just remove `Flag` for newly-added options.

https://github.com/llvm/llvm-project/pull/205704


More information about the llvm-commits mailing list