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

    <tr>
        <th>Summary</th>
        <td>
            [LINALG] Vectorization pass crashes when extract op have empty indices
        </td>
    </tr>

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

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

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

<pre>
    Hi, during the `tensor::ExtractOp` vectorization the pass crashes here (https://github.com/llvm/llvm-project/blob/07630da36a31596594a1ba3b9f000dc57d5382f3/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp#L748) when the extractOp has no indices. Probably, we need to insert a check here: https://github.com/llvm/llvm-project/blob/07630da36a31596594a1ba3b9f000dc57d5382f3/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp#L744, when the `extractOp.getIndices()` are empty.
```
  if (extractOp.getIndices().empty())
    return failure();
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUk0GPmz4QxT_NcBn9kbHB4AOH7D-lXSlqe6h6N2YAdx1Atkm6_fQVbNJ2K_XQYyUkhOx5zG_ePB2CHSaiGooHKI6JXuM4-_piL_T0NOqpI3fVLkvauXuu31ng_2O3ejsNGEdCkCzSFGYP4gDi8OZr9NrEDwtIhhcycfb2m452nvbbiw4BjddhpIAjeULg1RjjErZy3gBvBhvHtU3NfAbeOHe5v_5b_PyFTATetG5ugTeslIJ1WkgtskLJQuU6a7VoVc8Y60xRdoWoeC-AN2dn_aZjt7qj1e5F6GQn7QbgzSevp9DP_hyAN59_bTs1ywJcnMq8Aq7wOtILCd1BcdQBpxnt1FlDIcWPfm516563QV0JJ6IO43YeyEfUaEYyTzs8iAP-I_D5TnOHB8l-8KcDxccXduDbjDbntSek8xKfU2BHYAeQ7Pbsn4i235z_s0i6V98EubqXIXqKq5-w19atnm4XxMNvv0m6WnRKKJ1QncmqKqRUSiRjXRSMqlKYPu-llIJVXKmsbHPRq7LsyyKxNWdcsJIVWc5FxtO-z7LMtG1XMqOU0ZAzOmvr0s2XdPZDYkNYqZZCVlXidEsu7FHifKIr7ofA-ZYsX-9etusQIGfOhhh-qkQb3Z7B0-P7w-ktFEd85cXr7OxW3MaH87aEl9vE74uYrN7Vf71de7vbHuw43wMAAP__c9JM4Q">