[all-commits] [llvm/llvm-project] 08c46e: [LoongArch] Try to avoid casts around logical vect...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Wed Oct 15 01:34:19 PDT 2025


  Branch: refs/heads/users/ylzsx/vxi1-vector-masks
  Home:   https://github.com/llvm/llvm-project
  Commit: 08c46e407e220b54aeaa2711eea4374ddb63bf32
      https://github.com/llvm/llvm-project/commit/08c46e407e220b54aeaa2711eea4374ddb63bf32
  Author: yangzhaoxin <yangzhaoxin at loongson.cn>
  Date:   2025-10-15 (Wed, 15 Oct 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/lasx/vxi1-masks.ll

  Log Message:
  -----------
  [LoongArch] Try to avoid casts around logical vector ops on lasx

On LASX the type v4i1/v8i1/v16i1 may be legalized to v4i32/v8i16/v16i8,
which is LSX-sized register. In most cases we actually compare or select
LASX-sized registers and mixing the two types creates horrible code.



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