[llvm-bugs] [Bug 34452] New: NewGVN: Assertion `Val && "isa<> used on a null pointer

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 4 03:04:03 PDT 2017


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

            Bug ID: 34452
           Summary: NewGVN: Assertion `Val && "isa<> used on a null
                    pointer
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: tobias at grosser.es
                CC: llvm-bugs at lists.llvm.org

Created attachment 19098
  --> https://bugs.llvm.org/attachment.cgi?id=19098&action=edit
NewGVN

NewGVN fails when running 'opt -newgvn' on out.ll:

opt: /home/grosser/Projects/polly/git/include/llvm/Support/Casting.h:106:
static bool llvm::isa_impl_cl<llvm::Instruction, const llvm::Value
*>::doit(const From *) [To = llvm::Instruction, From = const llvm::Value *]:
Assertion `Val && "isa<> used on a null pointer"' failed.
#0 0x00007f30d3b63144 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/grosser/Projects/polly/git/lib/Support/Unix/Signals.inc:398:13
#1 0x00007f30d3b63476 bool __gnu_cxx::operator!=<std::pair<void (*)(void*),
void*>*, std::vector<std::pair<void (*)(void*), void*>,
std::allocator<std::pair<void (*)(void*), void*> > >
>(__gnu_cxx::__normal_iterator<std::pair<void (*)(void*), void*>*,
std::vector<std::pair<void (*)(void*), void*>, std::allocator<std::pair<void
(*)(void*), void*> > > > const&, __gnu_cxx::__normal_iterator<std::pair<void
(*)(void*), void*>*, std::vector<std::pair<void (*)(void*), void*>,
std::allocator<std::pair<void (*)(void*), void*> > > > const&)
/usr/bin/../lib/gcc/x86_64-linux-gnu/6.2.0/../../../../include/c++/6.2.0/bits/stl_iterator.h:880:27
#2 0x00007f30d3b63476 llvm::sys::RunSignalHandlers()
/home/grosser/Projects/polly/git/lib/Support/Signals.cpp:49:0
#3 0x00007f30d3b63476 SignalHandler(int)
/home/grosser/Projects/polly/git/lib/Support/Unix/Signals.inc:242:0
#4 0x00007f30d6767630 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11630)
#5 0x00007f30d10007ef gsignal
/build/glibc-MECilU/glibc-2.24/signal/../sysdeps/unix/sysv/linux/raise.c:58:0
#6 0x00007f30d10023ea abort /build/glibc-MECilU/glibc-2.24/stdlib/abort.c:91:0
#7 0x00007f30d0ff8bb7 __assert_fail_base
/build/glibc-MECilU/glibc-2.24/assert/assert.c:92: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/20170904/c63ce3d0/attachment.html>


More information about the llvm-bugs mailing list