[flang-commits] [flang] b88fa0e - [flang] Fix compilation problem with rename of "MemRefDataFlow"

Peter Steinfeld via flang-commits flang-commits at lists.llvm.org
Mon Jun 14 07:01:40 PDT 2021


Author: Peter Steinfeld
Date: 2021-06-14T07:01:11-07:00
New Revision: b88fa0e39fa7b8906562b7044d06bba094c8b688

URL: https://github.com/llvm/llvm-project/commit/b88fa0e39fa7b8906562b7044d06bba094c8b688
DIFF: https://github.com/llvm/llvm-project/commit/b88fa0e39fa7b8906562b7044d06bba094c8b688.diff

LOG: [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

Added: 
    

Modified: 
    flang/include/flang/Optimizer/Support/InitFIR.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Optimizer/Support/InitFIR.h b/flang/include/flang/Optimizer/Support/InitFIR.h
index 194d42a41a1c3..a69575a3fd976 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();


        


More information about the flang-commits mailing list