aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <quentin.colombet@gmail.com>2022-10-17 19:40:19 +0000
committerQuentin Colombet <quentin.colombet@gmail.com>2022-10-18 19:29:49 +0000
commitdf455beedfcd4634450e5782d6bb4986218174e2 (patch)
tree26d772b55b46e93b1752ad3a9128cda9ea0e509f /clang/lib/Basic/SourceManager.cpp
parent0bfd900150a85be236bd25a067d43a4afeff7124 (diff)
downloadllvm-df455beedfcd4634450e5782d6bb4986218174e2.zip
llvm-df455beedfcd4634450e5782d6bb4986218174e2.tar.gz
llvm-df455beedfcd4634450e5782d6bb4986218174e2.tar.bz2
[mlir][MemRef] Fix the simplification of extract_strided_metadata(subview)
Prior to this patch we were wrongly applying the sub-strides to the computation of the final offset of the subview. Put differently, we were computing the offset as: ``` offset = baseOffset + sum(subOffset#i * baseStrides#i * subSizes#i) ``` Whereas we should be doing: ``` offset = baseOffset + sum(subOffset#i * baseStrides#i) ``` I.e., drop the subSizes#i term from the sum. Differential Revision: https://reviews.llvm.org/D136107
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions