llvm / llvm/llvm-project

[JumpThreading] Hang at -O2/3

Open
#195,824 1 comment 0 reactions 1 assignee Claimed by @VatsalKhosla View on GitHub
generated by fuzzer hang llvm:optimizations
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Reproducer: https://godbolt.org/z/vhqKzY8G9
Testcase:
```c
#include
typedef int8_t v4i8 __attribute__((vector_size(4)));
_Bool g9;
int64_t g11, g13;
void f13()
{
lbl_br3:
goto lbl_br3;
}
void f6() { g11 = -903464455909408238; }
void f5()
{
_Bool a1;
v4i8 vec6;
f6();
g9 = g11 >= 0;
if (g9)
{
lbl_sw7:
vec6[0] = a1 = vec6[3] = 0;
lbl_br12:
g13 = vec6[1];
if (a1) goto lbl_sw7;
a1 = 2;
f13();
goto lbl_br12;
}
return;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.