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

    <tr>
        <th>Summary</th>
        <td>
            Using perfect hash for codegen of switch statements.
        </td>
    </tr>

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

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

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

<pre>
    An attempt was made a while back by Jasper Neumann. Before the patch gets lost i'm putting it here for reference in case anyone wants to take it up. It might require a lot of rework but the core of the implementation should be quite helpful.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkcGunDwMhZ8mbKyLIMAwLLK4V79G-rvorg9ggiHphIQbO3c0b18xbdWVvfCRv3MOMvstEhk1fKjhvwqLuJSN8xkXL0-s5rQ8zXsEFKH9EHggw44LAcLD-UAwo73D_IRvyAdl-E5lxxhr-KA1ZQJxBAeKdbCRMITEAl7pcYejiPi4gRdwlAnWlCHTSpmiJfARLDIBxmeKBA-MwiAJBO90SspRw_8Cu9-cQKbP4vPJFJJAWiHTI-U7zEVeAPYkSetr9_sRaKcoKD5FYJdKWGAm-CxeCByFYy2hrhbTLVM3YUWmHdtp0INux8qZZtTUj33X6GszzsPQ4Dq0y_VqO73243SpvNGN7puLHnU7dN1Yk-1aS3NrabigngbVN7SjD3UIX3ud8lZ55kJmukxjWwWcKfDfPrI5j97msrHqm-BZ-J9MvAQyP_hM8aC8khVwyO4VpU0LbRRP2_zwZwEsKC_nXFclB-NEDlbdu9I3pW-bF1fm2qZd6dv54s94O3L6SVaUvr0wWenbb9Ivo38FAAD___M7wn0">