<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 - MemorySSA crashing with Assertion `!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=45976">45976</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>MemorySSA crashing with Assertion `!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"' failed.
          </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>Global Analyses
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mikael.holmen@ericsson.com
          </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=23503" name="attach_23503" title="bbi-42991.ll reproducer">attachment 23503</a> <a href="attachment.cgi?id=23503&action=edit" title="bbi-42991.ll reproducer">[details]</a></span>
bbi-42991.ll reproducer

llvm commit: 87b235db63a3

If I compile with EXPENSIVE_CHECKS turned on and then run

 opt -S -o - bbi-42991.ll -early-cse-memssa

I hit the following assertion:

opt: ../lib/Analysis/MemorySSA.cpp:447: void checkClobberSanity(const
llvm::MemoryAccess *, llvm::MemoryAccess *, const llvm::MemoryLocation &, const
llvm::MemorySSA &, const (anonymous namespace)::UpwardsMemoryQuery &,
AliasAnalysisType &, bool) [AliasAnalysisType = llvm::AAResults]: Assertion
`!MSSA.isLiveOnEntryDef(MA) && "Hit liveOnEntry before clobber?"' failed.</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>