[all-commits] [llvm/llvm-project] cd459f: [SPIRV] Split wide shader PHIs before applying exp...

Farzon Lotfi via All-commits all-commits at lists.llvm.org
Tue Aug 4 13:47:43 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd459f2466e408ebf9dcd455c58a43952d6a5903
      https://github.com/llvm/llvm-project/commit/cd459f2466e408ebf9dcd455c58a43952d6a5903
  Author: Farzon Lotfi <farzonlotfi at microsoft.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

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

  Log Message:
  -----------
  [SPIRV] Split wide shader PHIs before applying explicit supported types (#213806)

fixes #213802

Apply the maximum-vector-size rule before the explicit PHI legality
rules for type. This way if we see a size 16 vector we split it
beforehand.

In more precise words this preserves existing legality rules while
ensuring shader PHIs wider than four lanes are split first.

Assisted by Copilot (GPT 5.6 Sol)



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