summaryrefslogtreecommitdiffstats
path: root/polly/lib/RegisterPasses.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-01-27 10:44:21 +0000
committerTobias Grosser <tobias@grosser.es>2014-01-27 10:44:21 +0000
commitf20210940c5f154d95bbf453d0188ce8a145519c (patch)
tree4e66f479c7a31ed09ad66928b57278901c400e77 /polly/lib/RegisterPasses.cpp
parent24d7e669b31c3d5681d719f65fe45dd7b6623bd7 (diff)
downloadbcm5719-llvm-f20210940c5f154d95bbf453d0188ce8a145519c.tar.gz
bcm5719-llvm-f20210940c5f154d95bbf453d0188ce8a145519c.zip
Allow Polly at all optimization levels
Restricting Polly to -O3 does not make a lot of sense as it is opt-in anyway and users who specifically request it should get it. If this causes performance problems we should rather address them by scheduling the right cleanup passes then just prevent the user from trying. Also restricting Polly to -O3 made bugpoint not work with the -O3 flag and polly enabled. llvm-svn: 200208
Diffstat (limited to 'polly/lib/RegisterPasses.cpp')
-rw-r--r--polly/lib/RegisterPasses.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp
index 5fd1960319b..ba1751a4d1b 100644
--- a/polly/lib/RegisterPasses.cpp
+++ b/polly/lib/RegisterPasses.cpp
@@ -307,16 +307,6 @@ registerPollyEarlyAsPossiblePasses(const llvm::PassManagerBuilder &Builder,
if (!shouldEnablePolly(Builder.OptLevel))
return;
- // We only run Polly at optimization level '-O3'.
- //
- // This is to ensure that scalar overhead that may be introduced by Polly is
- // properly cleaned up by LLVM later on. We may reinvestigate this decision
- // later on.
- if (Builder.OptLevel != 3) {
- errs() << "Polly should only be run with -O3. Disabling Polly.\n";
- return;
- }
-
registerPollyPasses(PM);
}
OpenPOWER on IntegriCloud