summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/MaterializeVectors.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2019-01-27 09:33:19 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 15:40:38 -0700
commitb42bea215ad8292e68436f68e15900b65f8c8e5e (patch)
tree95506329ddc177c4aa2a7d3e573c777b2fbfee0e /mlir/lib/Transforms/MaterializeVectors.cpp
parent36babbd7815519db5d26f55695fa3ec500997bcd (diff)
downloadbcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.tar.gz
bcm5719-llvm-b42bea215ad8292e68436f68e15900b65f8c8e5e.zip
Change AffineApplyOp to produce a single result, simplifying the code that
works with it, and updating the g3docs. PiperOrigin-RevId: 231120927
Diffstat (limited to 'mlir/lib/Transforms/MaterializeVectors.cpp')
-rw-r--r--mlir/lib/Transforms/MaterializeVectors.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/MaterializeVectors.cpp b/mlir/lib/Transforms/MaterializeVectors.cpp
index 7dd3cecdfed..4360a4e1b96 100644
--- a/mlir/lib/Transforms/MaterializeVectors.cpp
+++ b/mlir/lib/Transforms/MaterializeVectors.cpp
@@ -376,11 +376,10 @@ reindexAffineIndices(FuncBuilder *b, VectorType hwVectorType,
// Create a bunch of single result maps.
return functional::map(
- [b, numIndices, memrefIndices](AffineExpr expr) {
+ [b, numIndices, memrefIndices](AffineExpr expr) -> Value * {
auto map = AffineMap::get(numIndices, 0, expr, {});
- auto app = makeComposedAffineApply(b, b->getInsertionPoint()->getLoc(),
- map, memrefIndices);
- return app->getResult(0);
+ return makeComposedAffineApply(b, b->getInsertionPoint()->getLoc(), map,
+ memrefIndices);
},
affineExprs);
}
OpenPOWER on IntegriCloud