aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorJakub Lichman <limo@google.com>2020-09-02 14:02:40 +0000
committerJakub Lichman <limo@google.com>2020-09-03 06:01:21 +0000
commit8d35080ebbea477316159a5af7d925bb51d805d0 (patch)
tree0606d10bde24798f35615bef9f384d5e2d6f6f61 /llvm/lib/CodeGen/StackProtector.cpp
parent3746906193c1be913fe60072de9d4feb80f9c461 (diff)
downloadllvm-8d35080ebbea477316159a5af7d925bb51d805d0.zip
llvm-8d35080ebbea477316159a5af7d925bb51d805d0.tar.gz
llvm-8d35080ebbea477316159a5af7d925bb51d805d0.tar.bz2
[mlir][Linalg] Wrong tile size for convolutions fixed
Sizes of tiles (subviews) are bigger by 1 than they should. Let's consider 1D convolution without batches or channels. Furthermore let m iterate over the output and n over the kernel then input is accessed with m + n. In tiling subview sizes for convolutions are computed by applying requested tile size together with kernel size to the above mentioned expression thus let's say for tile size of 2 the subview size is 2 + size(n), which is bigger by one than it should since we move kernel only once. The problem behind it is that range is not turned into closed interval before the composition. This commit fixes the problem by turning ranges first into closed intervals by substracting 1 and after the composition back to half open by adding 1. Differential Revision: https://reviews.llvm.org/D86638
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions