aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorVyacheslav Levytskyy <vyacheslav.levytskyy@intel.com>2024-03-25 10:14:46 +0100
committerGitHub <noreply@github.com>2024-03-25 10:14:46 +0100
commitb0d03ccc0855f2bff39160f25fcde06aae07cace (patch)
treee34aed05ae556e3aa666ed13ead4ed157a986f08 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent1d250d9099a9ba8b53add7eb7db6827e8fc0c8fd (diff)
downloadllvm-b0d03ccc0855f2bff39160f25fcde06aae07cace.zip
llvm-b0d03ccc0855f2bff39160f25fcde06aae07cace.tar.gz
llvm-b0d03ccc0855f2bff39160f25fcde06aae07cace.tar.bz2
[SPIR-V] Fix illegal OpConstantComposite instruction with non-const constituents in SPIR-V Backend (#86352)
This PR fixes illegal use of OpConstantComposite with non-constant constituents. The test attached to the PR is able now to satisfy `spirv-val` check. Before the fix SPIR-V Backend produced for the attached test case a pattern like ``` %a = OpVariable %_ptr_CrossWorkgroup_uint CrossWorkgroup %uint_123 %11 = OpConstantComposite %_struct_6 %a %a ``` so that `spirv-val` complained with ``` error: line 25: OpConstantComposite Constituent <id> '10[%a]' is not a constant or undef. %11 = OpConstantComposite %_struct_6 %a %a ```
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions