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

    <tr>
        <th>Summary</th>
        <td>
            Illegal vectorization on Non-zero address space
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    The following code examples are equivalent except for one having a non-zero address space for the first arg or not. The non-zero address space version is incorrectly marked as vectorizable whereas the second one is not.

Illegal case: https://godbolt.org/z/Wjodd6n5x
Correct case: https://godbolt.org/z/svPhcT84x

cc @vchuravy @jdoerfert 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMks1u3DoMhZ9G3hAZ2PJP7IUXuTcw0E3RRYCuaYljK5XFqSg7kzx9YU_TFkULdCNqwcPzgYco4qZA1Kv6P1U_ZrimmWP_IgsLSTayfe2fZoIze88vLkxg2BLQFZeLJwGMBPR1dRt6CgnoauiS4MwROBDMuO0ShMDh7o0iA1obSQTkgoaOvrRPd1ESYJyAIwROJ9g9_yLaKIrjAE7ABcMxkkn-FRaMX8gCCmxkEkf3hqMneJkpEsphI2Q42IPMyeGj8keVP9zeD97ThB4MCqnyAeaULqLKB6UHpYeJ7cg-nThOSg9vSg-fn9naJtTXm_z_G8k_y2X7NJuntrr-ymAMqCrfzLxG3F73_7NlimeKCTLbl7YrO8yoL5q2Kbq6aZts7ov7qrJd3eRdWWi8r9q8s9iNVampMnasM9frXJd5k7d5WRW6Pp3Hqqux2Mu57MZGVTkt6PzJ-23ZGTMnslLflEVbZx5H8vJ-IbHfm-7GdRJV5d5Jkp-y5JKn_n2TP4JIe14c4OMfE83W6Pvf1uXSvI4nw4vSwz79e7m7RH4mk5QeDkJRejggvwUAAP__93vteQ">