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

            Bug ID: 33880
           Summary: clang hangs in
                    llvm::JumpThreadingPass::ComputeValueKnownInPredecesso
                    rs on a tiny input
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: k...@google.com
                CC: llvm-bugs@lists.llvm.org, max.kazant...@azul.com

found with clang-proto-fuzzer on r308641.

clang  -cc1 -triple x86_64-unknown-linux-gnu -O2  -emit-obj slow5.c

All time is spent in a recursive call to
llvm::JumpThreadingPass::ComputeValueKnownInPredecessors


void foo(int *a) {
  while ((1 + 1)) {
    while ((a[96] * a[96])) {
      a[0] = (1024);
      while (a[0]) {
        while (a[0]) {
          (void)0;
          while ((a[96] * ((a[96] * a[96]) < 1))) {
            a[96] = (1 + 1);
          }
          a[0] = (a[0] + a[0]);
        }
      }
    }
  }
}

(Not sure if this is related to https://bugs.llvm.org/show_bug.cgi?id=33753 or
https://bugs.llvm.org/show_bug.cgi?id=33494

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to