Issue 161492
Summary [InstCombine] Miscompilation when removing freezes
Labels miscompilation, llvm:instcombine, generated by fuzzer
Assignees dtcxzyw
Reporter dtcxzyw
    Reproducer: https://alive2.llvm.org/ce/z/3napog
```
define i64 @src(i1 %cond) {
  %1 = freeze i64 poison
  %2 = freeze i64 poison
  %ret = select i1 %cond, i64 %1, i64 %2
  ret i64 %ret
}

define i64 @tgt(i1 %cond) {
  ret i64 poison
}
```
llvm version: 69586331e868cef99fbcea74a061bd44f57c1904

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to