aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFarzon Lotfi <farzonlotfi@microsoft.com>2025-06-25 17:17:52 -0400
committerGitHub <noreply@github.com>2025-06-25 17:17:52 -0400
commit38aec4f1f422daf522e50204b794e9c071e5c61f (patch)
tree8726178139b2def311236166186ed84bd01c38bd /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta8ef75e758982d8e66790ffe26fcc6f1d9648e88 (diff)
downloadllvm-38aec4f1f422daf522e50204b794e9c071e5c61f.zip
llvm-38aec4f1f422daf522e50204b794e9c071e5c61f.tar.gz
llvm-38aec4f1f422daf522e50204b794e9c071e5c61f.tar.bz2
[DirectX] Limit GEP transformations to Arrays (#145758)
fixes #145408 Before we see the GEP we already have transformed Allocas that get passed the `isArrayOfVectors`. The bug is because we are trying to transform a gep for struct of arrays when we should only be transforming arrays. The problem with our `visitGetElementPtrInst` is that it was doing transformations for all allocas when it should be limiting it to the alloca of array cases. Technically we would have liked to make sure it was an array of vectors cases but by the time we see the GEP the type has been changed by replace all uses. There should not be a problem with looking at all Arrays since DXILDataScalarization does not change any indicies.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions