[llvm] [MachineSink] Fix missing sinks along critical edges (PR #97618)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 09:23:23 PDT 2024


================
@@ -921,13 +954,10 @@ bool MachineSinking::isWorthBreakingCriticalEdge(MachineInstr &MI,
   return false;
 }
 
-bool MachineSinking::PostponeSplitCriticalEdge(MachineInstr &MI,
-                                               MachineBasicBlock *FromBB,
-                                               MachineBasicBlock *ToBB,
-                                               bool BreakPHIEdge) {
-  if (!isWorthBreakingCriticalEdge(MI, FromBB, ToBB))
-    return false;
-
+bool MachineSinking::isLegalBreakingCriticalEdge(MachineInstr &MI,
----------------
mshockwave wrote:

Fixed.

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


More information about the llvm-commits mailing list