[llvm] [llvm][UnifyLoopExits] Avoid optimization if no exit block is found (PR #165343)

Miguel Saldivar via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 22 10:53:57 PST 2026


================
@@ -299,6 +299,8 @@ std::pair<BasicBlock *, bool> ControlFlowHub::finalize(
       Outgoing.insert(Succ1);
   }
 
+  assert(Outgoing.size());
----------------
Saldivarcher wrote:

Done!

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


More information about the llvm-commits mailing list