[PATCH] D144897: [SPIRV] fix several issues in builds with expensive checks

Ilia Diachkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 10:52:54 PST 2023


iliya-diyachkov created this revision.
iliya-diyachkov added reviewers: mpaszkowski, zuban32, andreytr, konrad.trifunovic, rengolin, MaskRay, arsenm.
Herald added subscribers: ThomasRaoux, hiraditya.
Herald added a project: All.
iliya-diyachkov requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144897

Files:
  llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
  llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
  llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
  llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144897.500842.patch
Type: text/x-patch
Size: 17424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230227/8943f94f/attachment.bin>


More information about the llvm-commits mailing list