[all-commits] [llvm/llvm-project] 74c667: [SPIRV] fix several issues in builds with expensiv...

Ilia Diachkov via All-commits all-commits at lists.llvm.org
Thu Mar 16 13:19:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 74c66710a79edb3a0d380079c1c5c82fa441a8e8
      https://github.com/llvm/llvm-project/commit/74c66710a79edb3a0d380079c1c5c82fa441a8e8
  Author: Ilia Diachkov <ilia.diachkov at gmail.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp

  Log Message:
  -----------
  [SPIRV] fix several issues in builds with expensive checks

The patch fixes "Virtual register does not match instruction constraint"
and partly "Illegal virtual register for instruction" fails in the SPIRV
backend builds with LLVM_ENABLE_EXPENSIVE_CHECKS enabled. As a result,
the number of passed LIT tests with enabled checks is doubled.

Also, support for ndrange_*D builtins is placed in a separate function.

Differential Revision: https://reviews.llvm.org/D144897




More information about the All-commits mailing list