[llvm] [SCEV] Fix a hang introduced by collectForPHI (PR #158153)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 09:07:34 PDT 2025
================
@@ -364,3 +364,29 @@ body:
exit:
ret void
}
+
+define void @hang_due_to_unreachable_phi_inblock() personality ptr null {
+bb:
+ br label %bb6
+
+self-loop: ; preds = %self-loop
+ %dead = invoke ptr null()
+ to label %self-loop unwind label %bb4
----------------
preames wrote:
Yeah, trying multiple variants, up to an including volatile stores, doesn't seem to trip the hang any more. Not sure why we need the invoke, but we appear to.
https://github.com/llvm/llvm-project/pull/158153
More information about the llvm-commits
mailing list