[llvm-bugs] [Bug 47340] New: hang on x86_64-linux-gnu with `-mllvm -polly -O2` and above

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 27 19:55:03 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47340

            Bug ID: 47340
           Summary: hang on x86_64-linux-gnu with `-mllvm -polly -O2` and
                    above
           Product: Polly
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Optimizer
          Assignee: polly-dev at googlegroups.com
          Reporter: cnsun at uwaterloo.ca
                CC: llvm-bugs at lists.llvm.org

$ timeout -s 9 30 clang-trunk t.c -mllvm -polly -O1
$ timeout -s 9 30 clang-trunk t.c -mllvm -polly -O2
Killed
$ 
$ clang-trunk -v
clang version 12.0.0 (https://github.com/llvm/llvm-project.git
7a5a74ea9675008589593e0f811c9b60fc962d0b)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/cnsun/usr/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$ 
$ cat t.c
int a, b, d, e, f;
char c;
unsigned g(int h) {
  int i = d = 0;
  for (; d <= 26; ++d)
    i = h &= e + h;
  return c &= i;
}
int main() {
  for (; a; a++) {
    f = 0;
    for (; f <= 9; f++)
      b-- &&g(a);
  }
}
$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200828/3a4a2fa7/attachment-0001.html>


More information about the llvm-bugs mailing list