[llvm] [MachineSink] Extend loop sinking capability (PR #117247)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 23:48:30 PST 2025


================
@@ -26,6 +26,7 @@
 #include "llvm/Analysis/AliasAnalysis.h"
 #include "llvm/Analysis/CFG.h"
 #include "llvm/Analysis/ProfileSummaryInfo.h"
+#include "llvm/CodeGen/DeadMachineInstructionElim.h"
----------------
arsenm wrote:

This probably shouldn't depend on another pass's header. Is there any reason why we don't have the full version of DeadMachineInstructionElim's version of isDead directly in MachineInstr instead of in the pass?

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


More information about the llvm-commits mailing list