[llvm] [CodeGen] Introduce `MachineDomTreeUpdater` (PR #95369)
Jakub Kuderski via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 23 19:51:06 PDT 2024
================
@@ -315,6 +315,13 @@ bool MachineBasicBlock::isLegalToHoistInto() const {
return true;
}
+bool MachineBasicBlock::hasName() const {
+ if (const BasicBlock *LBB = getBasicBlock())
+ return LBB->hasName();
+ else
----------------
kuhar wrote:
No need for `else` after return
https://github.com/llvm/llvm-project/pull/95369
More information about the llvm-commits
mailing list