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

    <tr>
        <th>Summary</th>
        <td>
            [X86] X86::getConstantFromPool - can't handle non-zero offsets
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:X86
      </td>
    </tr>

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

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

<pre>
    X86::getConstantFromPool attempts to extract the Constant data structure from a MachineInstr but currently bails if it finds a non-zero displacement/offset as it can be difficult to extract Constant elements from offset data.

X86FixupVectorConstantsPass and asm comments would really benefit from supporting offset cases if they can still extract the constant element data, so providing an opt-in variant of X86::getConstantFromPool would be very useful.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kk9v4zYQxT8NdRnYkCjJfw46uAkMFEWBoAWKXEfU0GJLkQJn6Mb99AXtZLO7h5x4mff4ezMPmd0lEA2q_0X1zxVmmWMa_vjtT7fEUI1xug2vh51qT6o9XUieYmDBIOcUl5cYPaAILaswSAR6k4RGQGaCj0GYUBBYUjaSE4FNcQGE39HMLtCvgSXBmAVMTomC-BuM6DyDs-AErAsTA0KIYfMfpQiT49WjoYWCKH2O1jIJIJdhgwFGgslZ60z28j3SNxzydy0_QN71hXGr6pOqT6-H3dm95fUvMhLTh4xfkBkwTIC8gInLw-PfmP0EidAXbgpkC3Mx5ryuMYkLl48_DDLdY8lMtzsri_P-h6WZnyjvYEo_AUdYU7y6qRhigLjKxgW4YnJlPFr48kgPzpHgSukGmclmv62moZ2O7RErGpp9e-y6Y9N01Tx03e7QH_u2pZ7I1hqb_bHt-u5ge5oM7io36Fr3tW7aRjeHtttO-9EcaovW7o62Mai6mhZ0fuv9ddnGdKkcc6ah0fu621ceR_J8r5zWI5p_KEyqLatXWpcWpqEIN2O-sOpq71j400qc-Htfy3z__HXyTdm00nuBGcPk6bNJj7NwlZMfZpGVi4k-K32-OJnzuDVxUfpcvn1_NmuKf5MpvbvHYaXP74mug_4_AAD__4qZITo">