[PATCH] D148514: [BranchFolding] Remove redundant conditional branch.

Danila Malyutin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 17 13:41:48 PDT 2023


danilaml added inline comments.


================
Comment at: llvm/lib/CodeGen/BranchFolding.cpp:1686
+          !MBB->isEHPad()) {
+        assert(PrevBB.isSuccessor(MBB) && "Not a predecessor?");
+        TII->removeBranch(*MBB);
----------------
Does it also need to check that MBB has no other predecessors?


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

https://reviews.llvm.org/D148514



More information about the llvm-commits mailing list