[llvm-bugs] [Bug 41096] New: opt crashes with "opt -slp-vectorizer -sroa -memdep -instcombine"

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 16 05:28:01 PDT 2019


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

            Bug ID: 41096
           Summary: opt crashes with "opt -slp-vectorizer -sroa -memdep
                    -instcombine"
           Product: libraries
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: cszide at 163.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21611
  --> https://bugs.llvm.org/attachment.cgi?id=21611&action=edit
.bc file of the source code

$clang -v
clang version 7.0.1 (tags/RELEASE_701/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/home/jack-zhou/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-18.04/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64

$opt -version
LLVM (http://llvm.org/):
  LLVM version 7.0.1
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: skylake

$clang -O3 -c -emit-llvm  -mllvm -disable-llvm-optzns small.c  -o small.bc

$opt -slp-vectorizer -sroa   -memdep -instcombine small.bc -o small-opt.bc
Stack dump:
0.      Program arguments: opt -slp-vectorizer -sroa -memdep -instcombine
small.bc -o small-opt.bc 
1.      Running pass 'Function Pass Manager' on module 'small.bc'.
2.      Running pass 'Combine redundant instructions' on function '@e'
LLVMSymbolizer: error reading file: No such file or directory
#0 0x0000000001bf8154 (opt+0x1bf8154)
#1 0x0000000001bf617e (opt+0x1bf617e)
#2 0x0000000001bf8312 (opt+0x1bf8312)
#3 0x00007f120f4fc890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x0000000001797e5b (opt+0x1797e5b)
#5 0x0000000001218e09 (opt+0x1218e09)
#6 0x000000000121c959 (opt+0x121c959)
#7 0x000000000121969e (opt+0x121969e)
#8 0x0000000001218d48 (opt+0x1218d48)
#9 0x0000000001204b60 (opt+0x1204b60)
#10 0x0000000000b710a8 (opt+0xb710a8)
#11 0x00000000012c4f8b (opt+0x12c4f8b)
#12 0x00000000012c4ccd (opt+0x12c4ccd)
#13 0x00000000018ceea1 (opt+0x18ceea1)
#14 0x000000000186de41 (opt+0x186de41)
#15 0x000000000186f1ce (opt+0x186f1ce)
#16 0x000000000186f58f (opt+0x186f58f)
#17 0x0000000001757ff1 (opt+0x1757ff1)
#18 0x0000000001758223 (opt+0x1758223)
#19 0x000000000175876e (opt+0x175876e)
#20 0x00000000007afbf5 (opt+0x7afbf5)
#21 0x00007f120df89b97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#22 0x000000000079c5ba (opt+0x79c5ba)
Segmentation fault (core dumped)

----------------------------------------
volatile a;
e() {
  int *b = 0;
  int c[1][2];
  int d;
  int f;
  for (; d;)
    b = c;
  a;
  if (*b) {
    int g = c;
  }
}

-- 
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/20190316/e7883cf7/attachment-0001.html>


More information about the llvm-bugs mailing list