[llvm-bugs] [Bug 31141] New: opt crashes while running "Loop Pass Manager" pass: Assertion `LICM.getLoopToAliasSetMap().empty() && "Didn't free loop alias sets"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 23 10:45:00 PST 2016


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

            Bug ID: 31141
           Summary: opt crashes while running "Loop Pass Manager" pass:
                    Assertion `LICM.getLoopToAliasSetMap().empty() &&
                    "Didn't free loop alias sets"' failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: su at cs.ucdavis.edu
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ clang -v
clang version 4.0.0 (trunk 287628)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/clang-trunk/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/5.3.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.3.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.2.0
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
$
$ clang -c -emit-llvm -o small.bc small.c
$ opt -simplifycfg -sroa -instcombine -loop-unroll -licm -o small-opt.bc
small.bc
opt: /tmp/llvm-builder/llvm-source-trunk/lib/Transforms/Scalar/LICM.cpp:152:
virtual bool {anonymous}::LegacyLICMPass::doFinalization(): Assertion
`LICM.getLoopToAliasSetMap().empty() && "Didn't free loop alias sets"' failed.
#0 0x0000000001c45175 (opt+0x1c45175)
#1 0x0000000001c4325e (opt+0x1c4325e)
#2 0x0000000001c433c0 (opt+0x1c433c0)
#3 0x00007fadde223330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007faddd00fc37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007faddd013028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007faddd008bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x00007faddd008ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x0000000001ab0c1a (opt+0x1ab0c1a)
#9 0x000000000134653e (opt+0x134653e)
#10 0x00000000017dfbd3 (opt+0x17dfbd3)
#11 0x00000000017dfc7c (opt+0x17dfc7c)
#12 0x00000000017e092a (opt+0x17e092a)
#13 0x000000000078b2d1 (opt+0x78b2d1)
#14 0x00007faddcffaf45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#15 0x00000000007e5086 (opt+0x7e5086)
Stack dump:
0.      Program arguments: opt -simplifycfg -sroa -instcombine -loop-unroll
-licm -o small-opt.bc small.bc
1.      Running pass 'Function Pass Manager' on module 'small.bc'.
2.      Running pass 'Loop Pass Manager' on function '@foo'
Aborted (core dumped)
$


------------------------


int a;

void foo ()
{ 
  int c = 0;
L:
  for (; c == 0;)
    ;
  if (a)
    goto L;
}

-- 
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/20161123/2da314e7/attachment.html>


More information about the llvm-bugs mailing list