summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/MaterializeVectors.cpp
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-01-03 15:48:18 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:54:49 -0700
commit5b87a5ef4b7b38af49932f958c35cd95460ceca3 (patch)
tree8daedd6f45e401eec4456bd71ccfec2326a0e8e7 /mlir/lib/Transforms/MaterializeVectors.cpp
parent17f96ea3dd1cca0501b1af8675a84789449b47e7 (diff)
downloadbcm5719-llvm-5b87a5ef4b7b38af49932f958c35cd95460ceca3.tar.gz
bcm5719-llvm-5b87a5ef4b7b38af49932f958c35cd95460ceca3.zip
[MLIR] Drop strict super-vector requirement in MaterializeVector
The strict requirement (i.e. at least 2 HW vectors in a super-vector) was a premature optimization to avoid interfering with other vector code potentially introduced via other means. This CL avoids this premature optimization and the spurious errors it causes when super-vector size == HW vector size (which is a possible corner case). This may be revisited in the future. PiperOrigin-RevId: 227763966
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 ebfdbc28d6c..bbe2f85319b 100644
--- a/mlir/lib/Transforms/MaterializeVectors.cpp
+++ b/mlir/lib/Transforms/MaterializeVectors.cpp
@@ -741,7 +741,7 @@ PassResult MaterializeVectorsPass::runOnFunction(Function *f) {
if (!opInst.isa<VectorTransferWriteOp>()) {
return false;
}
- return matcher::operatesOnStrictSuperVectors(opInst, subVectorType);
+ return matcher::operatesOnSuperVectors(opInst, subVectorType);
};
auto pat = Op(filter);
auto matches = pat.match(f);
OpenPOWER on IntegriCloud