[all-commits] [llvm/llvm-project] 0af160: [LoongArch] Add patterns for vector bitwise selection

hev via All-commits all-commits at lists.llvm.org
Wed Apr 29 23:56:34 PDT 2026


  Branch: refs/heads/users/hev/vbitsel
  Home:   https://github.com/llvm/llvm-project
  Commit: 0af16007f9ba5de56118bc8d9b5948bf5af0501d
      https://github.com/llvm/llvm-project/commit/0af16007f9ba5de56118bc8d9b5948bf5af0501d
  Author: WANG Rui <wangrui at loongson.cn>
  Date:   2026-04-30 (Thu, 30 Apr 2026)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
    M llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
    M llvm/test/CodeGen/LoongArch/lasx/bitsel.ll
    M llvm/test/CodeGen/LoongArch/lsx/bitsel.ll

  Log Message:
  -----------
  [LoongArch] Add patterns for vector bitwise selection

Add instruction selection patterns for VBITSEL_V/XVBITSEL_V and
VBITSELI_B/XVBITSELI_B to match the canonical bitwise select idiom:

`(a & b) | (~a & c)`

This enables the backend to generate dedicated bitwise select
instructions instead of separate AND/ANDN/OR sequences.



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