Issue 173148
Summary [InstCombine] opt hangs at O3
Labels llvm:instcombine, llvm:hang, generated by fuzzer
Assignees dtcxzyw
Reporter dtcxzyw
    Reproducer: https://godbolt.org/z/WGhzqnh64
```
; bin/opt -passes=instcombine test.ll -S
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

define fastcc i8 @func_125() {
entry:
  br label %for.cond1826

for.cond1826: ; preds = %for.cond1826, %entry
  %dec1838653 = phi i16 [ %spec.select, %for.cond1826 ], [ 0, %entry ]
  %cmp1827 = phi i1 [ %spec.select663, %for.cond1826 ], [ false, %entry ]
  %dec1838 = add i16 %dec1838653, -1
  %spec.select = select i1 %cmp1827, i16 %dec1838653, i16 %dec1838
  %spec.select663 = select i1 %cmp1827, i1 false, i1 true
  br label %for.cond1826
}
```

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

Reply via email to