[llvm] [MachineBlockPlacement][X86] Use max of MDAlign and TLIAlign to align Loops. (PR #71026)
Vito Kortbeek via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 02:37:42 PDT 2025
================
@@ -151,6 +151,53 @@ MachineLoopInfo::findLoopPreheader(MachineLoop *L, bool SpeculativePreheader,
return Preheader;
}
+MDNode *MachineLoop::getLoopID() const {
+ MDNode *LoopID = nullptr;
+ if (const auto *MBB = findLoopControlBlock()) {
----------------
kortbeek-snps wrote:
Downstream we noticed that the `LoopID` can't be found for some loops because `findLoopControlBlock()` returns the exiting block. Should this not be `getLoopLatch()`?
https://github.com/llvm/llvm-project/pull/71026
More information about the llvm-commits
mailing list