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

    <tr>
        <th>Summary</th>
        <td>
            [LoopVectorizer] Assertion `hasVectorValue (Def, Instance.Part)' failed.
        </td>
    </tr>

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

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

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

<pre>
    [testcase.tar.gz](https://github.com/llvm/llvm-project/files/8471505/testcase.tar.gz)
clang -march=z14 -Os crash0.i -o a.out -w

Reduced:
opt -O3 -S -mtriple=s390x-linux-gnu -mcpu=z15 tc_crash0_aftercreduce.ll

Transforms/Vectorize/VPlan.cpp:236: llvm::Value* llvm::VPTransformState::get(llvm::VPValue*, const llvm::VPIteration&): Assertion `hasVectorValue(Def, Instance.Part)' failed.

stack:
...
llvm::InnerLoopVectorizer::fixLCSSAPHIs
llvm::InnerLoopVectorizer::fixVectorizedLoop
llvm::LoopVectorizationPlanner::executePlan
...
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU11vmzAU_TXwYmER8xF44CFrNC1TpUbL1NfKMRfw5tjINmvWX79r8tG0D9UqWWDfj3PPOYa9af82UfHFg_OCO6CeW9q_RMU6YtXg_eiibBWxr7h66YdpT4U54EGpP5dXMlrzC4THYycVOHxX-XJRpAXu3uOyOkrXUboSiuueJAduxRBl65dFTpIHR4TlbkipJIkhnJrJk-T51HB6_oB2EtAGTvPZjFjxkJFkh1jeylEBormsTo-Jkno6Jr2eMCXGaZ5SEC-eTkOeeOfBCjsjUqVux_y0XLvO2EMQ84jajJUvEPZb5E3FOCIDlpX4JLMTyCdbPXI1YdGb0PYKtfPcwynaA5pV3VZdWiN2R4TRzr_B2CBR7qXRESuDgzh15RzYECJRmQ7cnUieYao1dAFpg0Bco7ottz40siXpON5RS2_VYpH4fbWU0nPylcFGa7D3xoxXK-wp0cnj_d1ut9p-27jPNF1DbSh433nbNMsOputLOxxBTB5C7Eo4bpusrbOax156BeGDfje5WH9kGfkvz-LJqubT_4R0bpp_iiKvymU8NAUv0zatqmUp8rZjizxbQlmIskwFrkUWK74H5YKIiDENz2SGwD2qiGXDUsbSfMHSelHnjMISoCjrrm6ztq26OspTOCBhGnhQY_vYNjOl_dQ7TCrpvHtNcudkrwHO47qBD_o8ik9-MLb5jhfgnNHxTKOZZfwDRlZU-Q">