diff options
author | Vyacheslav Levytskyy <vyacheslav.levytskyy@intel.com> | 2024-06-25 10:56:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 10:56:56 +0200 |
commit | f6aa50873463ebd9a459b7ccd4989460175a6e7f (patch) | |
tree | a4fdf33378ce3a86417863cfb92c45370527f69c /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 8395f9cecd34af8a79c96e661e46a80d0d471fb1 (diff) | |
download | llvm-f6aa50873463ebd9a459b7ccd4989460175a6e7f.zip llvm-f6aa50873463ebd9a459b7ccd4989460175a6e7f.tar.gz llvm-f6aa50873463ebd9a459b7ccd4989460175a6e7f.tar.bz2 |
[SPIR-V]: Fix creation of constants of array types in SPIRV Backend (#96514)
This PR fixes https://github.com/llvm/llvm-project/issues/96513.
The way of creation of array type constant was incorrect: instead of
creating [1, 1, 1] or [1, 1, 1, 1, 1, ....] constants, the same [1]
constant was always created, substituting original composite constants.
This in its turn led to a situation when only one of constants might
exist in the code without emitting invalid code, the second constant
would be eventually rewritten to the first constant, because a key to
address both was an array of a single element (like [1]).
This PR fixes the issue and purges from the code unneeded copy/pasted
clone of the function that creates an array constant.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions