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

    <tr>
        <th>Summary</th>
        <td>
            GVN miscompilation
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Reduced test case (uncovered with opaque pointers + PGO) from [here](https://crsrc.org/c/third_party/re2/src/re2/parse.cc;drc=519a2a94bc630eb856ca50ec6d1dc8dee4d795b3;l=2219).

Running GVN on [this](https://gist.github.com/aeubanks/d4562b9909612e9e15b54ea319020853) gives [this](https://gist.github.com/aeubanks/0df3eec10f45d58e40f53e4607a87712) where `%tmp57 = load i64, ptr %tmp22, align 4` is wrong. It should be a `load i64, ptr %tmp3` instead.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUkuP2yAQ_jX4gmphMMQcfNg06qqXttpDrxWPiU1LjAs40f77jrPatqr2VAnwvOebb2yTfx6fwG8OPK1QKnWmACV82BaXrpDRfAt1pmk1PzegawpLhVww4ki_PH4mXNNzThdK5HHGaCJPmDvXuhYiHgj_gMflkl2b8rTLeOscsv-2mlyfUcvA8cWI3zJ6CrTOEXH0aBYn2WnDje6tU4KBHaRyRjJwynfeDR6g9wctrcCEiOGcdxpxtYSdCHt4eZ-2ZQnLRB-_fqJp2dEiivIW2imU2k448mZbly5oMbBZs_woKPpeKm61Zlp1HDR00soejOg042yQYqdjClco_92B-bMAcB0799LLAXp2lgJ6xQ5mOBw6vne47UxTohjhsl5WeaA4NY3JeBpUT_h7utZMX5yc77qJYVpojyk0FHrLaZla-rHSMqctemqBmr3e2yXEPW0pFYxvGz8Kr4U2TQ01wrgTegkF51hDNDWkpdlyHP-d-K9hY7y-ft6tOX0HV1ENpWywEyCl6EUzj0Ip7YW3ZyM7brlGip1i5oDcdKAta6KxEMuIRBPOF7jRewmUkfMmjJxxziTDxWC9rh2U6kHy_jww45xWpGdwMSG2O47952zyeIdkt6mgM-KSyh-nKQUZBLi3w_pmq3PK4-vimnvv8Y79F_r5BQg">