[llvm] [BOLT][AArch64] Transform cmpbr ~> cmp + br when inversion not possible (PR #185731)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 1 08:09:23 PDT 2026


================
@@ -544,12 +546,22 @@ bool ReorderBasicBlocks::modifyFunctionLayout(BinaryFunction &BF,
 }
 
 Error FixupBranches::runOnFunctions(BinaryContext &BC) {
+  std::unique_ptr<BinaryFunctionCallGraph> CG;
+  std::unique_ptr<RegAnalysis> RA;
+  std::unique_ptr<DataflowInfoManager> DIM;
+
+  if (opts::LivenessAnalysis) {
----------------
paschalis-mpeis wrote:

Thinking out loud whether we need to further restrict this to AArch64.
Other targets would have to specify this flag anyway..

Is the bulk of the work done here, at object creation, or later?

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


More information about the llvm-commits mailing list