From b88fa0e39fa7b8906562b7044d06bba094c8b688 Mon Sep 17 00:00:00 2001 From: Peter Steinfeld Date: Mon, 14 Jun 2021 06:21:37 -0700 Subject: [PATCH] [flang] Fix compilation problem with rename of "MemRefDataFlow" Revision https://reviews.llvm.org/D104190 renamed MemRefDataFlow -> AffineScalarReplacement. After this rename, mlir failed to build. With this change, all of clang, mlir, and flang build and test correctly. Differential Revision: https://reviews.llvm.org/D104223 --- flang/include/flang/Optimizer/Support/InitFIR.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/include/flang/Optimizer/Support/InitFIR.h b/flang/include/flang/Optimizer/Support/InitFIR.h index 194d42a..a69575a 100644 --- a/flang/include/flang/Optimizer/Support/InitFIR.h +++ b/flang/include/flang/Optimizer/Support/InitFIR.h @@ -56,7 +56,7 @@ inline void registerMLIRPassesForFortranTools() { mlir::registerPrintOpStatsPass(); mlir::registerInlinerPass(); mlir::registerSCCPPass(); - mlir::registerMemRefDataFlowOptPass(); + mlir::registerAffineScalarReplacementPass(); mlir::registerSymbolDCEPass(); mlir::registerLocationSnapshotPass(); mlir::registerAffinePipelineDataTransferPass(); -- 2.7.4