[llvm] [AMDGPU] Teach SILateBranchLowering pass to preserve MachineLoopInfo (PR #178276)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 11:06:46 PST 2026


================
@@ -64,6 +68,8 @@ class SILateBranchLoweringLegacy : public MachineFunctionPass {
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<MachineDominatorTreeWrapperPass>();
     AU.addPreserved<MachineDominatorTreeWrapperPass>();
+    AU.addRequired<MachineLoopInfoWrapperPass>();
----------------
arsenm wrote:

```suggestion
```

It's not required if it's only used to preserve the analysis 

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


More information about the llvm-commits mailing list