[all-commits] [llvm/llvm-project] d3d092: [LoongArch] Propagate demanded bits for CRC[C].W.{...

hev via All-commits all-commits at lists.llvm.org
Thu Jun 11 01:59:02 PDT 2026


  Branch: refs/heads/users/hev/crc
  Home:   https://github.com/llvm/llvm-project
  Commit: d3d092756ec988933090c4b1033a146e1c730932
      https://github.com/llvm/llvm-project/commit/d3d092756ec988933090c4b1033a146e1c730932
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/crc.ll

  Log Message:
  -----------
  [LoongArch] Propagate demanded bits for CRC[C].W.{B,H}.W

CRC byte and halfword instructions only use the low 8 or 16 bits of
their data operand. Propagate these demanded-bit requirements through
SimplifyDemandedBitsForTargetNode() so redundant masking operations can
be removed during DAG combining.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list