[PATCH] D109428: [SimplifyCFG] SwitchInst processing redirecting the UB edges from the BB with the phiNode, that contains the UB, to the new BB.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 17 00:20:19 PDT 2021


lebedev.ri accepted this revision.
lebedev.ri added a comment.

lg



================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:6633-6635
+            DTU->applyUpdates(
+                { { DominatorTree::Delete, Predecessor, BB },
+                  { DominatorTree::Insert, Predecessor, Unreachable } });
----------------
Is the code clang-formatted?
Let's for consistency always do `Insert` first.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109428/new/

https://reviews.llvm.org/D109428



More information about the llvm-commits mailing list