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

    <tr>
        <th>Summary</th>
        <td>
            [X86] Add feature flags for Fast Short REP STOSB/CMPSB/SCASB
        </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>
    We already have feature flags for Enhanced REP MOVSB/STOSB (FeatureERMSB) and Fast Short REP MOVSB (FeatureFSRM) - but latest sapphirerapids/zen4 also support faster STOSB/CMPSB/SCASB operations that we should consider supporting (and making use of).

CC @legrosbuffle @gchatelet who IIRC have done a lot of work on micro-optimizing memory library functions
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskkFv4ywQhn8NvowSYZzE9sGHJK2l6lPUKv60u1cMg80WgwW4VfrrVzi76mrVC2jQOzPvDA8PQQ8WsSH7E9k_ZHyJo_PN9b9OT85mvZO35jsCNx65vMHI3xAU8rh4BGX4EEA5D4925FaghOvjC1yev3Unwtru_-fuBIRV7V3_eL2k9xq4ldDyEKEbnY-fOX9p2-56SdIN9EsEwyOGCIHP86g9ej5rGQhrP9DugJvgICzznGopHiJ6WFsT1p4vL3cr52N3Ajej51E7GyCOPMI7QhjdYiQIZ4OW6P_U0XZIZpLRib-maAkIThFWbwl9IPR4P89nIDtqcPAu9ItSBlM8iJFHNBjhfXTw9HQ93_cmnUXgYFwEp-Dd-VdwFiYtvNu4OepJf6RWE07O38Do3nN_A7VYsZrOZFPIuqh5hk1-KHdVvj_UZTY2VYVKVnUtaSkKxlRdlqrvVS7zku7EPs90wygraM7KnBa7fbkVB6FYUYmypJSqsic7ihPXZmvM27R1fsh0CAs2B1oULDO8RxNWQhjruXhFK0lx_FEdCGMJGt-kvE2_DCGtQ4cYPitFHc2KV9LvH-Ao5RcE_cPDlx-YLd40Y4xzIMWRsJawdtBxXPqtcBNhbWr5-9rM3v1EEQlr10kSLeswvwIAAP__eYz0CQ">