[llvm] [SimplifyCFG] Use hash map to continue hoisting the common instructions (PR #78615)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 11:49:18 PDT 2024


================
@@ -1788,8 +1919,6 @@ bool SimplifyCFGOpt::hoistSuccIdenticalTerminatorToSwitchOrIf(
   auto *BB2 = I2->getParent();
   if (BI) {
     assert(OtherSuccTIs.size() == 1);
-    assert(BI->getSuccessor(0) == I1->getParent());
-    assert(BI->getSuccessor(1) == I2->getParent());
   }
----------------
goldsteinn wrote:

Nit: should drop braces.

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


More information about the llvm-commits mailing list