diff options
| author | River Riddle <riverriddle@google.com> | 2019-10-17 20:08:01 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-17 20:08:34 -0700 |
| commit | 2acc220f17bacbf933d024a68385a909b44352fd (patch) | |
| tree | cf0aaf3ce4fc11e68185abd6331fa2bc5e31a596 /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 575405f4d6762830c1c4520569de4e4ed3c8eed5 (diff) | |
| download | bcm5719-llvm-2acc220f17bacbf933d024a68385a909b44352fd.tar.gz bcm5719-llvm-2acc220f17bacbf933d024a68385a909b44352fd.zip | |
NFC: Remove trivial builder get methods.
These don't add any value, and some are even more restrictive than the respective static 'get' method.
PiperOrigin-RevId: 275391240
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopTiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/LoopTiling.cpp b/mlir/lib/Transforms/LoopTiling.cpp index af1ecd06ee6..4ee7197f2df 100644 --- a/mlir/lib/Transforms/LoopTiling.cpp +++ b/mlir/lib/Transforms/LoopTiling.cpp @@ -168,13 +168,13 @@ constructTiledIndexSetHyperRect(MutableArrayRef<AffineForOp> origLoops, boundExprs.push_back(dim + tileSizes[i]); boundExprs.append(origUbMap.getResults().begin(), origUbMap.getResults().end()); - auto ubMap = b.getAffineMap(origUbMap.getNumDims() + 1, + auto ubMap = AffineMap::get(origUbMap.getNumDims() + 1, origUbMap.getNumSymbols(), boundExprs); newLoops[width + i].setUpperBound(/*operands=*/ubOperands, ubMap); } else { // No need of the min expression. auto dim = b.getAffineDimExpr(0); - auto ubMap = b.getAffineMap(1, 0, dim + tileSizes[i]); + auto ubMap = AffineMap::get(1, 0, dim + tileSizes[i]); newLoops[width + i].setUpperBound(newLoops[i].getInductionVar(), ubMap); } } |

