[llvm] [BOLT][AArch64] Optimize the mov-imm-to-reg operation (PR #189304)

Shanzhi Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 1 01:32:52 PDT 2026


chenshanzhi wrote:

Update: a test is added to this PR and the format issues are fixed. I did some tests on AArch64 and the results are fine, so I think this PR is ready for review now.

And after taking a closer look at #137413,  I think apart from the missing `AArch64CodeGen` in `CMakeLists.txt`, the use of  `MCRegisterInfo::getRegClass()` might be improper. So I left a comment here https://github.com/llvm/llvm-project/pull/137413#discussion_r3020436124. I hope this is useful. And thanks for @rcorcs  's prior work.

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


More information about the llvm-commits mailing list