[all-commits] [llvm/llvm-project] 557dce: [VE] Fix crash when splitting all-ones v512i1 mask...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Jul 28 07:49:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 557dcec6258aac87f9c2bb6d651ec7e774f7d09d
      https://github.com/llvm/llvm-project/commit/557dcec6258aac87f9c2bb6d651ec7e774f7d09d
  Author: Luke Lau <luke at igalia.com>
  Date:   2026-07-28 (Tue, 28 Jul 2026)

  Changed paths:
    M llvm/lib/Target/VE/VEInstrPatternsVec.td
    M llvm/test/CodeGen/VE/Packed/vp_mul.ll

  Log Message:
  -----------
  [VE] Fix crash when splitting all-ones v512i1 mask (#212489)

The added test case crashes because we try to extract a subreg from vmp0
when selecting vec_unpack_*, but vmp0 has no subregisters, see
d46e49838e17800cb72d95db1b23c04bbca610e2

vmp0 is hardwired to all ones, so it gets selected for an all ones mask.

Fix it by adding an explicit pattern for an all ones mask that selects
vm0, the v256i1 version of vmp0, instead of creating an invalid subreg
extract.



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