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

    <tr>
        <th>Summary</th>
        <td>
            [flang][lowering] use llvm.intr.stacksave/restore ops instead of opaque calls 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            enhancement,
            flang:fir-hlfir
      </td>
    </tr>

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

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

<pre>
    Since flang lowering was done, LLVM operations were added for stack save/restore instrinsics, and using them would make the IR more readable and the stack save/restore pattern easier to identify.

I updated on place using the call in https://github.com/llvm/llvm-project/pull/107879, but there are more (the main care is probably to make sure to create them with the proper address space when that matter).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9r3DAQxT-NfBmyyPKftQ8-JFkWAimUFnofS-O1EllyNXKWfPsib0Kg9NKLjWzp6b03P2S2F080iOZBKJVGh7NQSjSnArc0hzi8EPrvFC3FYgzmffhpvSaYHPoLuHClaP0FrshggiehHuH5-dc3CCtFTDZ4hitFAjSGDEwhAifUr8D4RkKdI3EKkcB6TtF6tpqzBHoDG2fhNNMC17A5Awu-Ul7D0w9Y8qFIaHB0tG_PP_4pvWJKFD0QsqUIKYA15JOd3g9CnoS8vz2fYFsNJjIQPKwONX05AI3OgfUwp7SyqO6FOgt1vtg0b-NBh0Wos3Nvn6-7NYYX0kmo87o5J9S5lMfu2Odk45ayYm4k0i2GUF2-Y0HrQeevlmGNYcTRvWe7e27eIuWFjoSJPmqxad7trTHXnTuOxAy8ZvfXmTykGRMsewNC9YfCDJXpqx4LGsqjavpj2R2bYh6k1GNHcpLU1bKp2mrqO1P3fdtj2-qxLuygpKplX8pSVcemOfRSj1XZ6rLGEnXTilrSgtYdcgOHEC-FZd5oKGUny7ZwOJLjD8rIz-g1LeRTZk09CqV2oER1P9l4N7vJxg8K47BXOm4XFrV0lhN_XZFscju6t9PNSTQPn0yK5gQbE-ybrU_xsOPxFx1h5R0-QgNhgrDi7-02b4Zii27475HvsXkf-p78bVB_AgAA__9-6CMd">