[llvm-bugs] [Bug 31184] New: opt crashes with "opt -globals-aa -lcssa -functionattrs -rpo-functionattrs": Assertion `ResultPass && "getAnalysis*() called on an analysis that was not " "'required' by pass!"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 27 23:50:50 PST 2016


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

            Bug ID: 31184
           Summary: opt crashes with "opt -globals-aa -lcssa
                    -functionattrs -rpo-functionattrs": Assertion
                    `ResultPass && "getAnalysis*() called on an analysis
                    that was not " "'required' by pass!"' 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 287975)
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 -globals-aa -lcssa -functionattrs -rpo-functionattrs -o small-opt.bc
small.bc
opt:
/tmp/llvm-builder/llvm-source-trunk/include/llvm/PassAnalysisSupport.h:236:
AnalysisType& llvm::Pass::getAnalysisID(llvm::AnalysisID) const [with
AnalysisType = llvm::CallGraphWrapperPass; llvm::AnalysisID = const void*]:
Assertion `ResultPass && "getAnalysis*() called on an analysis that was not "
"'required' by pass!"' failed.
#0 0x0000000001c45a45 (opt+0x1c45a45)
#1 0x0000000001c43b2e (opt+0x1c43b2e)
#2 0x0000000001c43c90 (opt+0x1c43c90)
#3 0x00007fc0b4efc330 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x10330)
#4 0x00007fc0b3ce8c37 gsignal
/build/eglibc-oGUzwX/eglibc-2.19/signal/../nptl/sysdeps/unix/sysv/linux/raise.c:56:0
#5 0x00007fc0b3cec028 abort
/build/eglibc-oGUzwX/eglibc-2.19/stdlib/abort.c:91:0
#6 0x00007fc0b3ce1bf6 __assert_fail_base
/build/eglibc-oGUzwX/eglibc-2.19/assert/assert.c:92:0
#7 0x00007fc0b3ce1ca2 (/lib/x86_64-linux-gnu/libc.so.6+0x2fca2)
#8 0x000000000186c42d (opt+0x186c42d)
#9 0x00000000017e0bda (opt+0x17e0bda)
#10 0x000000000078c9a1 (opt+0x78c9a1)
#11 0x00007fc0b3cd3f45 __libc_start_main
/build/eglibc-oGUzwX/eglibc-2.19/csu/libc-start.c:321:0
#12 0x00000000007e6f4b (opt+0x7e6f4b)
Stack dump:
0.      Program arguments: opt -globals-aa -lcssa -functionattrs
-rpo-functionattrs -o small-opt.bc small.bc 
1.      Running pass 'Deduce function attributes in RPO' on module 'small.bc'.
Aborted (core dumped)
$ 


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


int main ()
{
  return 0; 
}

-- 
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/20161128/57acd98c/attachment.html>


More information about the llvm-bugs mailing list