[llvm] [PowerPC]optimize the epilogue for restore non volatile cr fields (PR #202339)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 3 21:53:22 PDT 2026


https://github.com/hubert-reinterpretcast commented:

As long as the prologue uses `mfcr`, the epilogue can just use `mtcr`. That will restore the value of all of the CR fields (including the non-volatile/callee saved ones).

https://github.com/llvm/llvm-project/pull/202339


More information about the llvm-commits mailing list