3 Commits

Author SHA1 Message Date
WANG Xuerui
ed078c48f0 [LoongArch] Add insn aliases jr and ret
Differential Revision: https://reviews.llvm.org/D131512
2022-08-11 10:02:45 +08:00
Weining Lu
20e6ada2fb [LoongArch] Combine ((x & shifted_mask) >> shamt) to bstrpick.{w/d}
This is an improvement to LoongArch codegen. In D127206 we combined
((x >> shamt) & shifted_mask) to bstrpick and here we do a similar
combination when certain conditions are met.

Thanks to @xen0n for reminding me.

Differential Revision: https://reviews.llvm.org/D128191
2022-06-23 17:10:06 +08:00
Weining Lu
2ef7c4ce46 [LoongArch] Perform and combination with a shifted mask
Differential Revision: https://reviews.llvm.org/D127206
2022-06-20 09:58:17 +08:00