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

    <tr>
        <th>Summary</th>
        <td>
            [GlobalIsel] Constant Folding
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:globalisel
      </td>
    </tr>

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

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

<pre>
    * ConstantFoldFBinOp has no support for G_FCEIL
https://github.com/llvm/llvm-project/blob/3a63f737e29a2382c8ec26c0d360bd77c01a27a1/llvm/lib/CodeGen/GlobalISel/Utils.cpp#L713

* APFloat has no support for ceil.

* We have no build vector constant folding for floats:
https://github.com/llvm/llvm-project/blob/3a63f737e29a2382c8ec26c0d360bd77c01a27a1/llvm/test/CodeGen/AArch64/extract-vector-elt.ll#L729
and
https://github.com/llvm/llvm-project/blob/39c8e87717fbc611b9e84f62edf656608ae52e5c/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp#L229

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8k89unToQh5_GbFCQPcY2LFiQkziKlKtbNaq6rIw9HFw5GGETtW9fwUn6T120qtQNbGZG33zjn0nJn2fEjohrIm4Ks-Uprl1Odtow52KI7nNHoC9PcU7ZzFnH4PS1n_9fysmkco5l2pYlrrkc41refdCn2_sHQm8I7aecl0R4T0AT0Gefp22obHwioEN4fv1dLWv8iDYT0EOIAwHNjeSj4gqhNcAbsA1akJY6LunglLKUGVCGfTfH732n6PAOZwL6LsTBhPtHDAT0u-xDquyyEOAPivEL3MsX-rJ_o0M0-VfrWPSh-rn-PZaTeca9dth8cOUz2rwXvxgqxxicn8_HhHEffUj4x0oypvyDk75f7SRrAho_5dXYfHXhvsKQqxAOOdBeMM3s_pK3tQ02SjE1DlYyNrTY1KMEdKMUUtLGoAAU9jdPeHq8_e_-7fVuG9fXU8IrbeE67lremgI7phgDJqloiqmTUg5G8EYxUwvBR9sAE9I4JrjC1tDCd0Chphw4U7XiTcW5pILWRjLetoIqUlN8Mj5UO2UV13PhU9qwa2RNZRHMgCEd0QE49uD9-eD2aeeGPVFrdygatnMiNQ0-5fRtWvY5HNl7WXdvEzdfw1bqy1MqtjV0f3yLAzUR0AftlwAAAP__oRw3DA">