[PATCH] D131204: llvm-reduce: add a pass for cleaning up branches

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 16:12:38 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/tools/llvm-reduce/deltas/ReduceBranches.cpp:73
+        if (TBB == BB)
+          BI->setSuccessor(index, NewTarget);
+        ++index;
----------------
Do you need to call replaceSuccessorsPhiUsesWith or replacePhiUsesWith to avoid breaking those?


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

https://reviews.llvm.org/D131204



More information about the llvm-commits mailing list