aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/OptimizedStructLayoutTest.cpp
diff options
context:
space:
mode:
authorSteven Perron <stevenperron@google.com>2025-10-31 10:12:26 -0400
committerGitHub <noreply@github.com>2025-10-31 10:12:26 -0400
commit9f72fab4901d4e2b49c8b1974e1d75d73728e416 (patch)
tree46557c93cb13f005ee3889811dd6176f08edcfd2 /llvm/unittests/Support/OptimizedStructLayoutTest.cpp
parent19bf0adfd0efa7c8e9bbc48d119b47f9349dcf69 (diff)
downloadllvm-9f72fab4901d4e2b49c8b1974e1d75d73728e416.zip
llvm-9f72fab4901d4e2b49c8b1974e1d75d73728e416.tar.gz
llvm-9f72fab4901d4e2b49c8b1974e1d75d73728e416.tar.bz2
[SPIRV] Fix vector bitcast check in LegalizePointerCast (#164997)
The previous check for vector bitcasts in `loadVectorFromVector` only compared the number of elements, which is insufficient when the element types differ. This can lead to incorrect assumptions about the validity of the cast. This commit replaces the element count check with a comparison of the total size of the vectors in bits. This ensures that the bitcast is only performed between vectors of the same size, preventing potential miscompilations. Part of https://github.com/llvm/llvm-project/issues/153091
Diffstat (limited to 'llvm/unittests/Support/OptimizedStructLayoutTest.cpp')
0 files changed, 0 insertions, 0 deletions