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

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Wed Mar 11 01:49:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a69fdcf3317416f75b86f3330f5649c2c98e36a
      https://github.com/llvm/llvm-project/commit/9a69fdcf3317416f75b86f3330f5649c2c98e36a
  Author: Zhaoxin Yang <yangzhaoxin at loongson.cn>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

  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 (#163523)

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