[all-commits] [llvm/llvm-project] 47b29c: [SPIR-V] Legalize G_PHI of oversized vectors via f...

Faijul Amin via All-commits all-commits at lists.llvm.org
Fri Jun 19 02:20:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 47b29c2eadbd9d7ddfb26bd6104a0a1f9e4a13a1
      https://github.com/llvm/llvm-project/commit/47b29c2eadbd9d7ddfb26bd6104a0a1f9e4a13a1
  Author: Faijul Amin <md.faijul.amin at intel.com>
  Date:   2026-06-19 (Fri, 19 Jun 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
    A llvm/test/CodeGen/SPIRV/instructions/phi-large-vector-shader.ll
    A llvm/test/CodeGen/SPIRV/instructions/phi-large-vector.ll

  Log Message:
  -----------
  [SPIR-V] Legalize G_PHI of oversized vectors via fewer-elements (#203993)

`G_PHI` on vectors wider than the SPIR-V max vector size previously
failed legalization. This PR adds a `fewerElementsIf` rule that splits
them down to `MaxVectorSize`, matching how other vector ops are handled
in `SPIRVLegalizerInfo.cpp`.


Added the following test
`llvm/test/CodeGen/SPIRV/instructions/phi-large-vector.ll` covering
spirv32 and spirv64.



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