[LoongArch] Use register R0 (ZERO) for constant 0
authorWeining Lu <luweining@loongson.cn>
Thu, 16 Jun 2022 05:33:43 +0000 (13:33 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 16 Jun 2022 05:43:11 +0000 (13:43 +0800)
commit70f2befaf7ad60b8bae62f01f89dfd8bdb890234
tree17c69ec180375fef1bab4f1454c2365e610b2410
parente9349ef9e6d83aa8900b5e534f1d15fb4d44a33c
[LoongArch] Use register R0 (ZERO) for constant 0

Differential Revision: https://reviews.llvm.org/D127205
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
llvm/test/CodeGen/LoongArch/imm.ll