commit | 4e1d61c42a4a8b72d78b14f24ce867c19ce4c838 | [log] [tgz] |
---|---|---|
author | Arnab Dutta <arnab.dutta@cerebras.net> | Sat Nov 27 00:36:09 2021 +0530 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Nov 26 11:11:46 2021 -0800 |
tree | 9d569aebc4fe2e15d353995d5440c2b26aaf44dc | |
parent | d43cd2aff7bc43c91afe65ee04cfc95a754ab1a1 [diff] |
[MLIR] Avoid creation of buggy affine maps when incorrect values of number of dimensions and number of symbols are provided. We check whether the maximum index of dimensional identifier present in the result expressions is less than dimCount (number of dimensional identifiers) argument passed in the AffineMap::get() and the maximum index of symbolic identifier present in the result expressions is less than symbolCount (number of symbolic identifiers) argument passed in AffineMap::get(). Reviewed By: nicolasvasilache, bondhugula Differential Revision: https://reviews.llvm.org/D114238 GitOrigin-RevId: c2280b55173ca42f32e0bf22b10e73ba5b7fbda0
See https://mlir.llvm.org/ for more information.