llvm-project
e517a85e - [LoongArch] Override `isLSRCostLess` to set `Insns` as the first priority

Commit
160 days ago
[LoongArch] Override `isLSRCostLess` to set `Insns` as the first priority Similar to several other targets, this commit override `isLSRCostLess` to set instruction number as the first priority when LSR pass deciding the cost. Besides, this commit also takes the extra temporary register may be used into account in `NumRegs`. This is same as riscv, see the reason in https://github.com/llvm/llvm-project/pull/92296.
Author
Committer
Parents
Loading