[all-commits] [llvm/llvm-project] 20e6ad: [LoongArch] Combine ((x & shifted_mask) >> shamt) ...
Lu Weining via All-commits
all-commits at lists.llvm.org
Thu Jun 23 02:20:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 20e6ada2fb94a97e677c5493dd6c1886d416c91a
https://github.com/llvm/llvm-project/commit/20e6ada2fb94a97e677c5493dd6c1886d416c91a
Author: Weining Lu <luweining at loongson.cn>
Date: 2022-06-23 (Thu, 23 Jun 2022)
Changed paths:
M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
M llvm/test/CodeGen/LoongArch/bstrpick_d.ll
M llvm/test/CodeGen/LoongArch/bstrpick_w.ll
M llvm/test/CodeGen/LoongArch/ir-instruction/lshr.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list