[polly] b150d34 - [Polly] Add support for -polly-enable-mse with NPM.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 15:32:01 PDT 2022


Author: Michael Kruse
Date: 2022-10-26T17:27:31-05:00
New Revision: b150d34c47efbd8fa09604bce805c0920360f8d7

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

LOG: [Polly] Add support for -polly-enable-mse with NPM.

The MaximalStaticExpansionPass was already ported to the NPM in
02f640672e2875c4e7578366bb2e22582548d7c1. Allow adding it to the default
NPM pass builder pipeline using -polly-enable-mse.

Added: 
    

Modified: 
    polly/lib/Support/RegisterPasses.cpp

Removed: 
    


################################################################################
diff  --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index e21789b559cc..ca3ffd5b39b8 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -533,8 +533,7 @@ static void buildCommonPollyPipeline(FunctionPassManager &PM,
     SPM.addPass(DeadCodeElimPass());
 
   if (FullyIndexedStaticExpansion)
-    llvm::report_fatal_error("Option -polly-enable-mse not supported with NPM",
-                             false);
+    SPM.addPass(MaximalStaticExpansionPass());
 
   if (EnablePruneUnprofitable)
     SPM.addPass(PruneUnprofitablePass());


        


More information about the llvm-commits mailing list