diff options
| author | Uday Bondhugula <uday@polymagelabs.com> | 2019-12-09 06:26:05 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-12-09 06:26:33 -0800 |
| commit | a63f6e0bf98f63e5c18acbaf9eacd8fde6a1b001 (patch) | |
| tree | b87a04b50e3801737e8e0917c73d5f2eb299f1e6 /mlir/lib/Transforms | |
| parent | ade58a268ca3795c72a3c8110656821894805531 (diff) | |
| download | bcm5719-llvm-a63f6e0bf98f63e5c18acbaf9eacd8fde6a1b001.tar.gz bcm5719-llvm-a63f6e0bf98f63e5c18acbaf9eacd8fde6a1b001.zip | |
Replace spurious SmallVector constructions with ValueRange
Signed-off-by: Uday Bondhugula <uday@polymagelabs.com>
Closes tensorflow/mlir#305
COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/305 from bondhugula:value_range 21d1fae73f549e3c8e72b60876eff1b864cea39c
PiperOrigin-RevId: 284541027
Diffstat (limited to 'mlir/lib/Transforms')
| -rw-r--r-- | mlir/lib/Transforms/Utils/LoopUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/Utils/LoopUtils.cpp b/mlir/lib/Transforms/Utils/LoopUtils.cpp index f718d9a5637..e9a6ee12eb6 100644 --- a/mlir/lib/Transforms/Utils/LoopUtils.cpp +++ b/mlir/lib/Transforms/Utils/LoopUtils.cpp @@ -1235,11 +1235,10 @@ static AffineForOp generatePointWiseCopy(Location loc, Value *memref, memIndicesStart); // Construct the subscript for the slow memref being copied. - SmallVector<Value *, 2> operands = {memBase, forOp.getInductionVar()}; auto memIndex = b.create<AffineApplyOp>( loc, AffineMap::get(2, 0, b.getAffineDimExpr(0) + b.getAffineDimExpr(1)), - operands); + ValueRange({memBase, forOp.getInductionVar()})); memIndices.push_back(memIndex); } |

