[llvm] [AArch64] Use GISel for optnone functions (PR #174746)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 7 04:23:55 PST 2026


================
@@ -503,9 +503,14 @@ MachineFunction::CreateMachineBasicBlock(const BasicBlock *BB,
           MachineBasicBlock(*this, BB);
   // Set BBID for `-basic-block-sections=list` and `-basic-block-address-map` to
   // allow robust mapping of profiles to basic blocks.
-  if (Target.Options.BBAddrMap ||
-      Target.getBBSectionsType() == BasicBlockSection::List)
-    MBB->setBBID(BBID.has_value() ? *BBID : UniqueBBID{NextBBID++, 0});
+  if ((Target.Options.BBAddrMap ||
+       Target.getBBSectionsType() == BasicBlockSection::List)) {
+    if (BBID)
+      MBB->setBBID(*BBID);
+    else if (BB)
+      MBB->setBBID(UniqueBBID{NextBBID++, 0});
+  }
----------------
arsenm wrote:

Looks unrelated? 

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


More information about the llvm-commits mailing list