[all-commits] [llvm/llvm-project] cb7030: [LoongArch] use TypeWidenVector for most illegal v...

tangaac via All-commits all-commits at lists.llvm.org
Sun Mar 2 18:26:33 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb7030dbe7f3f1947c31b3059958ff3968cc22ff
      https://github.com/llvm/llvm-project/commit/cb7030dbe7f3f1947c31b3059958ff3968cc22ff
  Author: tangaac <tangyan01 at loongson.cn>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/test/CodeGen/LoongArch/lsx/vec-sext.ll
    M llvm/test/CodeGen/LoongArch/lsx/vec-zext.ll

  Log Message:
  -----------
  [LoongArch] use TypeWidenVector for most illegal vector types (#126456)

`TypeWidenVector` makes an illegal vector a larger one
e.g. in lsx
v2i32 -> v4i32
v4i16 -> v8i16
With this we can make good use of `vilvh`, `vilvl` instructions in
vector `sext`, `zext` in later pr.

Previous action is `TypePromoteInteger`, which replaces integer with a
larger one
e.g. in lsx
v2i32 -> v2i64
v4i16 -> v4i32



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