[mlir][linalg] Enable the vector transfer lowering by default.
authorTobias Gysi <gysit@google.com>
Tue, 12 Oct 2021 17:43:47 +0000 (17:43 +0000)
committerTobias Gysi <gysit@google.com>
Tue, 12 Oct 2021 18:11:05 +0000 (18:11 +0000)
Adapt CodegenStartegy to used the vector transfer lowering patterns by default.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D111649

mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h

index c29e3648119bbd0b560576e3d647ce3a074575c3..a19b926dd2f7328677c7ac89c1eb3df19bf9de84 100644 (file)
@@ -836,7 +836,7 @@ struct LateCodegenStrategyOptions {
   /// Vector lowering operations may result in surprising behavior when
   /// composing multiple codegen strategies and must be enabled explicitly.
   int64_t maxTransferRank = 1;
-  bool enableVectorTransferLowering = false;
+  bool enableVectorTransferLowering = true;
   bool enableVectorTransferPartialRewrite = false;
   bool enableVectorContractLowering = false;
   bool enableVectorToSCFConversion = false;
@@ -855,7 +855,7 @@ struct LinalgEnablingOptions {
 /// form.
 struct LinalgVectorLoweringOptions {
   int64_t maxTransferRank = 1;
-  bool enableVectorTransferLowering = false;
+  bool enableVectorTransferLowering = true;
   bool enableVectorTransferPartialRewrite = false;
   bool enableVectorContractLowering = false;
   bool enableVectorToSCFConversion = false;