<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - NewGVN: Assertion `Val && "isa<> used on a null pointer"
   href="https://bugs.llvm.org/show_bug.cgi?id=34452">34452</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>NewGVN: Assertion `Val && "isa<> used on a null pointer
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Scalar Optimizations
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tobias@grosser.es
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19098" name="attach_19098" title="NewGVN">attachment 19098</a> <a href="attachment.cgi?id=19098&action=edit" title="NewGVN">[details]</a></span>
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*> > >
<span class="quote">>(__gnu_cxx::__normal_iterator<std::pair<void (*)(void*), void*>*,</span >
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>