diff options
author | Michael Kruse <llvm-project@meinersbur.de> | 2022-10-26 17:24:43 -0500 |
---|---|---|
committer | Michael Kruse <llvm-project@meinersbur.de> | 2022-10-26 17:27:31 -0500 |
commit | b150d34c47efbd8fa09604bce805c0920360f8d7 (patch) | |
tree | 74307826876d4cfdb33309eb8010544d6847dd4a | |
parent | bb90d7ee3943ac8482d509d5224d24f1c9a5ac5c (diff) | |
download | llvm-b150d34c47efbd8fa09604bce805c0920360f8d7.zip llvm-b150d34c47efbd8fa09604bce805c0920360f8d7.tar.gz llvm-b150d34c47efbd8fa09604bce805c0920360f8d7.tar.bz2 |
[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.
-rw-r--r-- | polly/lib/Support/RegisterPasses.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp index e21789b..ca3ffd5 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()); |