[llvm] [SimpleLoopUnswitch] Remove callbacks (PR #73300)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 01:52:51 PST 2023


================
@@ -3540,8 +3575,10 @@ unswitchLoop(Loop &L, DominatorTree &DT, LoopInfo &LI, AssumptionCache &AC,
   if (Trivial && unswitchAllTrivialConditions(L, DT, LI, SE, MSSAU)) {
     // If we unswitched successfully we will want to clean up the loop before
     // processing it further so just mark it as unswitched and return.
-    UnswitchCB(/*CurrentLoopValid*/ true, /*PartiallyInvariant*/ false,
-               /*InjectedCondition*/ false, {});
+    postUnswitch(/*Loop*/ L, /*LoopUpdater*/ LoopUpdater,
+                 /*LoopName*/ L.getName(),
+                 /*CurrentLoopValid*/ true, /*PartiallyInvariant*/ false,
+                 /*InjectedCondition*/ false, /*NewLoops*/ {});
----------------
nikic wrote:

The comments should only be on the bool values.

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


More information about the llvm-commits mailing list