[all-commits] [llvm/llvm-project] 396a2d: [RISCV][P-ext] Fold packed insert-into-zero to zer...

SiHuaN via All-commits all-commits at lists.llvm.org
Wed Jul 15 01:09:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 396a2d700bba0f9d4ac97198921beb7413e5ce5c
      https://github.com/llvm/llvm-project/commit/396a2d700bba0f9d4ac97198921beb7413e5ce5c
  Author: SiHuaN <liyongtai at iscas.ac.cn>
  Date:   2026-07-15 (Wed, 15 Jul 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    A llvm/test/CodeGen/RISCV/rvp-insert-subvector.ll

  Log Message:
  -----------
  [RISCV][P-ext] Fold packed insert-into-zero to zero-extend (#208006)

An insert_subvector of a 32-bit packed type (v4i8/v2i16) into a zero-filled
64-bit packed vector at index 0 is a zero-extend. Fold it so RV64 emits a
single zext.w instead of scalarizing into a byte-wise repack; RV32
concatenates with a zero half into the GPRPair.



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