summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/MaterializeVectors.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-01-07 20:05:14 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 15:04:20 -0700
commitc6f798a976704ecd9a83081776e753dba2406ee6 (patch)
tree57614ce55b4e48ee450fadae45e87577a57fdced /mlir/lib/Transforms/MaterializeVectors.cpp
parent8eccc429b75f32b30eab67fa709d624bbc6ff50b (diff)
downloadbcm5719-llvm-c6f798a976704ecd9a83081776e753dba2406ee6.tar.gz
bcm5719-llvm-c6f798a976704ecd9a83081776e753dba2406ee6.zip
Introduce AffineMap::compose(AffineMap)
This CL is the 2nd on the path to simplifying AffineMap composition. This CL uses the now accepted `AffineExpr::compose(AffineMap)` to implement `AffineMap::compose(AffineMap)`. Implications of keeping the simplification function in Analysis are documented where relevant. PiperOrigin-RevId: 228276646
Diffstat (limited to 'mlir/lib/Transforms/MaterializeVectors.cpp')
-rw-r--r--mlir/lib/Transforms/MaterializeVectors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/MaterializeVectors.cpp b/mlir/lib/Transforms/MaterializeVectors.cpp
index e687889cf93..8c8e1e88a08 100644
--- a/mlir/lib/Transforms/MaterializeVectors.cpp
+++ b/mlir/lib/Transforms/MaterializeVectors.cpp
@@ -470,7 +470,7 @@ static AffineMap projectedPermutationMap(VectorTransferOpTy *transfer,
}
auto projectionMap = AffineMap::get(optionalRatio->size(), 0, keep, {});
LLVM_DEBUG(projectionMap.print(dbgs() << "\nprojectionMap: "));
- return composeUnboundedMaps(projectionMap, permutationMap);
+ return simplifyAffineMap(projectionMap.compose(permutationMap));
}
/// Creates an instantiated version of `read` for the instance of
OpenPOWER on IntegriCloud