[PATCH] D147368: [LoongArch] Optimize bitwise and with immediates

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 2 19:02:46 PDT 2023


benshi001 added inline comments.


================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/and.ll:392
 ;; This case is not optimized to `bstrpick + slli`,
 ;; since the immediate 0xfff0 has more than 2 uses.
 define i64 @and_i64_0xfff0_multiple_times(i64 %a, i64 %b, i64 %c) {
----------------
This is the case the immediate has 3 uses, which is not optimized.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147368/new/

https://reviews.llvm.org/D147368



More information about the llvm-commits mailing list