Issue 60983
Summary [clang17] File blowup and timeout for generating llvm IR file with -emit-llvm
Labels new issue
Assignees
Reporter cbossut7
    Clang compiles the file fine.

$ clang-trunk -O3 abc.c -o abc.out

However it never finishes generating an ir file, which also blows up in size.

$ timeout -s 9 20 clang-trunk -O3 abc.c -emit-llvm -S -o abc.ll
Killed

$ clang-trunk --version
clang version 17.0.0 (https://github.com/llvm/llvm-project.git a52432f633127036f5da7bedd83bacb1083cb833)


This seems to be a problem with the latest clang. It emits an ir file for clang 13 without issue.

$ clang-13 -O3 abc.c -emit-llvm -S -o abc.ll

$ clang-13 --version
clang version 13.0.0


$ cat abc.c
typedef int h;
int a[], c[];
h b, g, f, e, d, l;
short n;
short(o)(short p, int q) { return q >= 2 || p > 7 >> p << q; }
void r() {
  h *i = &b, *j = &a[3];
  for (; g; g++) {
    h *k = &c[2], *m = &b;
    for (; f;)
      ;
    e = -7;
    for (; e; ++e) {
      l = 0;
 for (; l <= 8; l++) {
        n = o(*i & m == k, f);
        *m = (&d == j) - (3 && n);
      }
    }
  }
}
void main() {}

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

Reply via email to