aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorSagar Kulkarni <sagar.kulkarni1911@gmail.com>2025-04-11 21:15:51 -0400
committerGitHub <noreply@github.com>2025-04-12 04:15:51 +0300
commit357e3803bb94cc622c785f7eb60aa38d552bc5ef (patch)
tree7a32fcdb1b20c44509e2a655b4e75a9b8ce2432b /clang/lib/Frontend/CompilerInstance.cpp
parent54e70ac7650f1c22f687937d1a082e4152f97b22 (diff)
downloadllvm-357e3803bb94cc622c785f7eb60aa38d552bc5ef.zip
llvm-357e3803bb94cc622c785f7eb60aa38d552bc5ef.tar.gz
llvm-357e3803bb94cc622c785f7eb60aa38d552bc5ef.tar.bz2
[mlir][vector] Prevent folding non memref-type gather into maskedload (#135371)
This patch fixes an issue in the FoldContiguousGather pattern which was incorrectly folding vector.gather operations with contiguous indices into vector.maskedload operations regardless of the base operand type. While vector.gather operations can work on both tensor and memref types, vector.maskedload operations are only valid for memref types. The pattern was incorrectly lowering a tensor-based gather into a masked-load, which is invalid. This fix adds a type check to ensure the pattern only applies to memref-based gather operations. Co-authored-by: Sagar Kulkarni <sagar@rain.ai>
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions