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

    <tr>
        <th>Summary</th>
        <td>
            `-Wunused-function` reported in `llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:RISC-V,
            code-quality
      </td>
    </tr>

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

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

<pre>
    ```
/home/user/CLionProjects/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp:840: warning: ‘void {anonymous}::RISCVInstructionSelector::renderImm(llvm::MachineInstrBuilder&, const llvm::MachineInstr&, int) const’ defined but not used [-Wunused-function]
  840 | void RISCVInstructionSelector::renderImm(MachineInstrBuilder &MIB,
```

I am using `gcc (GCC) 14.2.1 20240910` on Manjaro Linux.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysU01vnDwQ_jXDxVpkBszCgcMu-xKtlEivmio9G5iwTsHe-mPT_PvKZKOmair1UAkJzzCD5_kY6ZyaNFEDYg_ikMjgT8Y2j8rSs7xQ0pvxpYGSXx--A-xOZiHALjiygF17q4z-35onGrwD7Ob5smzOr_E1jC_VA3afpZ0oZj8d79sHwO7meE_zW3zUztsweGX0Pc00eGPT4XyGfFcVHPIde5ZWKz3FI_yHUHGoq4tRI4PtXmqjXxYTHGwPkO8g3_3pn69fLemR7HFZAKt1xjV7J4eT0rR27YOaxwixBGzZYLTz7OPKa4nSHrB-rXybr2YjPSpNI-uDZ9p4FhyNDMR-8yXoeN48Br3OB-IAfMdYVXAG25atyP4exAejM8Dy7rgHbKNw70XkuyOTCwtO6YlByadhYIDVTdtGBFmRYpox5FjwOos9zGh2J_WTtIbdKh2-p8nY5GOd1zKhJtvmVclLwTE5NdW27mUvC1lKrEU-UiGGothyzgXHHGWiGuQoOPI8qzLBMe2HbU4lFmKUeV1kAgpOi1RzGtlOjZ0S5VygJkMhRJbMsqfZrYZF7OXwlfR4lXvzAIgRLuJgRtp8C3JW_iUmxSGxzerNPkwOCj4r593PK7zyM0Wn_65LyZmls7GeRqZ0pOsfmLrkSbBzc_L-7KKY2AF2k_Kn0KeDWd5tzq_7tFIR9-zKxqXBHwEAAP__4Qws0g">