[llvm] [InstSimplify] Fix Compilation Hang in simplifyExtractValueInst (PR #190279)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 5 09:35:06 PDT 2026


================
@@ -0,0 +1,41 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -passes=correlated-propagation -S | FileCheck %s
+
+define i32 @main() {
----------------
dtcxzyw wrote:

Further reduced:
```

define i32 @main() {
entry:
  br label %mpath_parent.exit820

land.rhs.i74.us.i:                                ; No predecessors!
  %0 = insertvalue [2 x i32] %0, i32 0, 1
  %path.coerce.fca.0.extract.i75.us.i = extractvalue [2 x i32] %0, 0
  br label %mpath_parent.exit820

mpath_parent.exit820:                             ; preds = %land.rhs.i74.us.i, %entry
  %path.coerce.fca.0.extract.sink.i814 = phi i32 [ 0, %entry ], [ %path.coerce.fca.0.extract.i75.us.i, %land.rhs.i74.us.i ]
  ret i32 0
}
```
Please assign meaningful names to these values.


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


More information about the llvm-commits mailing list