-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
hangCompiler hang (infinite loop)Compiler hang (infinite loop)llvm:SCEVScalar EvolutionScalar Evolution
Description
Compiler explorer: https://godbolt.org/z/PdsEMbY6b
When compile the following program using clang under -O3, it hangs.
int a;
int b;
short c() {
volatile unsigned char d = 2;
int e = 1;
a = 0;
for (; a < 3; a++) {
b = 0;
for (; b < 10; b++)
do {
e -= 3;
d;
} while (e > 2);
}
for (int f = 0;;)
;
}
int main() {}I found this bug exists on clang-16.0.0, clang-17.0.1 and the latest trunk.
Metadata
Metadata
Assignees
Labels
hangCompiler hang (infinite loop)Compiler hang (infinite loop)llvm:SCEVScalar EvolutionScalar Evolution