From b150d34c47efbd8fa09604bce805c0920360f8d7 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Wed, 26 Oct 2022 17:24:43 -0500 Subject: [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. --- polly/lib/Support/RegisterPasses.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'polly') 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()); -- cgit v1.1