<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 - opt -early-cse sometimes crashing with Assertion `!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst) || getHashValueImpl(LHS) == getHashValueImpl(RHS)'"
   href="https://bugs.llvm.org/show_bug.cgi?id=42280">42280</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>opt -early-cse sometimes crashing with Assertion `!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst) || getHashValueImpl(LHS) == getHashValueImpl(RHS)'
          </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>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=22100" name="attach_22100" title="reproducer">attachment 22100</a> <a href="attachment.cgi?id=22100&action=edit" title="reproducer">[details]</a></span>
reproducer

Running

 opt -early-cse -o /dev/null './reduced3.ll'

sometimes crashes with

opt: ../lib/Transforms/Scalar/EarlyCSE.cpp:353: static bool
llvm::DenseMapInfo<(anonymous namespace)::SimpleValue>::isEqual((anonymous
namespace)::SimpleValue, (anonymous namespace)::SimpleValue): Assertion
`!Result || (LHS.isSentinel() && LHS.Inst == RHS.Inst) || getHashValueImpl(LHS)
== getHashValueImpl(RHS)' failed.

Usually it crashes within 30 attempts but sometimes it takes a lot more.

(On earlier versions of the compiler it crashed like once in 3000 attempts so
we seem to be "lucky" with current trunk version r363355)

The input can for sure be reduced more but it's a bit messy since it's not
crashing all the time.</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>