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

    <tr>
        <th>Summary</th>
        <td>
            [X86] X86FixupInstTunings - add VPERMILPDri -> VSHUFPDrri mapping
        </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>
    Similar to the existing VPERMILPS -> VSHUFPS mapping, we can save an encoding byte: https://godbolt.org/z/Yb31czvvG

VPERMILPDm -> VPSHUFDm is trickier but possible in the cases where we repeat the immediate mask repeats every sublane.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckUGPmzwQhn-NuYwSGRsIOXDI97G0q7ZStGlX26ONZ2EaY5Btspv99RU021a92Ifx-HlfPSoE6hxixfL_WF4nao796KuHTycaRpfo0VyrEw1klYc4QuwR8JVCJNfB4_Hu4cv95-MJNkzewePp47fmeIJBTRO5jon_4QWhVQ6CuiAoB-ja0Syb-hqRyQP0MU6ByQMTDRNNNxo92rgdfcdE88ZE813LtH27XD4wXjN--HW-Y-vhxj0u4HoAChA9tWdCD3qOMI0hkLYI5NbgrQoY4KVHj0syjxOquE5oGNCQigiDCufbJABe0F8hzNoqh9vEVNLs5V4lWKXFbpfvd3xXJn21K8vS5PtUcpNLI7nKNC9SLlPNs2ej2oQqwYXkQpRpnqZpuc2yLG3VPiueC2wVVyzjOCiyW2svw9I_oRBmrIqUFzyxSqMNqyEhtGrP6AyTh6eyYEIs0ny17G303AWWcUshhj8_RYp21bu8z2t4KouGXufp3oX4dXbkugAbUMb89ll7-tto7T29S01mb6t_rFHsZ71tx4GJZqHers3kxx_YRiaatUxgoln7_AwAAP__EgLIWQ">