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

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


================
@@ -3540,8 +3575,7 @@ 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(L, LoopUpdater, L.getName(), true, false, false, {});
----------------
nikic wrote:

Keep the comments on the flags here please.

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


More information about the llvm-commits mailing list