<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55078>55078</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            IR Outliner: Assertion `V != nullptr && "Value is a nullptr?"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:crash,
            llvm:optimizations
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ornata
      </td>
    </tr>
</table>

<pre>
    https://godbolt.org/z/Y31a7cqPd

```
opt: /root/llvm-project/llvm/include/llvm/Analysis/IRSimilarityIdentifier.h:896: llvm::Optional<unsigned int> llvm::IRSimilarity::IRSimilarityCandidate::getGVN(llvm::Value*): Assertion `V != nullptr && "Value is a nullptr?"' failed.
```

Bugpointed from building `llvm-test-suite/tools/fpcmp.c` with the IR outliner at -O2 for AArch64.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU0uPmzAQ_jVwsYKIwTwOHNikrXJpqq0UqUdjG3BlMLXHrbK_vgObVaLdHisNNjPjeXyfx52V12YEWHyUtRH9jDJY2VkDiXUDai_4_cj2vBS_vskoPUZpe1uL9CabahfADARPO2sBN2N-T7vF2Z9KvKm46VmYINXd0M7cXL32-Ht6_q4nbbjTcD1JNYPutXLJiHmrulizbzHYZ9aeF9AWQ6PsEGavh1lJomds4dPDoceEHy0HPkstOahX16Dgy-VrRKt7_IWbgK0iL_VavfVeubUsQdQXhLqPsiOZgzELOFQLFNzoFka0J_zNGWVILI1oSXqujZLJPyl8XZ_CsFiEgoB6ZyfSBW2knoe16MYpKA87HzSsLIK1ZuWuX8S0JALPkD8aRgKjIqdnYgMYPStHOJDdmZLeOtK2ToxFnjwWjWWTyTqreQwajGow9HwL_R_I4-DM-ynDLkOXCDvdZ-HdyGjvg1rBMZaWVTw2QvaKlYIVhWK8qmrR5aVStBec5V1esdjwThnfROwJi97uUTjux439A7lbcVxxEF74CsqvXnaMdUNTStOcsn3JqrxOqMjKqpSyprVKs30V5ama8AKTNcn6PmLXbD13YfDoNNqDvzu53wZTbf1gfh5gtK6xbubA4w1ds0H7C0pZF-Y">