[polly] r198370 - RegisterPasses: Do not claim we schedule canonicalization passes at -O0
Tobias Grosser
tobias at grosser.es
Thu Jan 2 14:48:51 PST 2014
Author: grosser
Date: Thu Jan 2 16:48:50 2014
New Revision: 198370
URL: http://llvm.org/viewvc/llvm-project?rev=198370&view=rev
Log:
RegisterPasses: Do not claim we schedule canonicalization passes at -O0
Also the code makes the impression this was happening, shouldEnablePolly()
always returns false for optlevel equal to zero. This was previously different,
but was accidentally changed by a commit a couple of months ago. As this
behavior was mainly a debugging tool and adding this to clang never really made
sense, we just remove the last traces.
Modified:
polly/trunk/lib/RegisterPasses.cpp
Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=198370&r1=198369&r2=198370&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Thu Jan 2 16:48:50 2014
@@ -311,9 +311,6 @@ static void registerPollyPasses(llvm::Pa
}
static bool shouldEnablePolly(unsigned OptLevel) {
- if (OptLevel == 0)
- return false;
-
if (PollyOnlyPrinter || PollyPrinter || PollyOnlyViewer || PollyViewer)
PollyTrackFailures = true;
@@ -344,22 +341,6 @@ registerPollyEarlyAsPossiblePasses(const
registerPollyPasses(PM);
}
-static void
-registerPollyOptLevel0Passes(const llvm::PassManagerBuilder &Builder,
- llvm::PassManagerBase &PM) {
- if (shouldEnablePolly(Builder.OptLevel))
- registerCanonicalicationPasses(PM);
-}
-
-/// @brief Register Polly canonicalization passes at opt level '0'
-///
-/// At '-O0' we schedule the Polly canonicalization passes. This allows us
-/// to easily get the canonicalized IR of a program which can then be used
-/// with the Polly passes of the 'opt' optimizer.
-static llvm::RegisterStandardPasses
-RegisterPollyCanonicalizer(llvm::PassManagerBuilder::EP_EnabledOnOptLevel0,
- registerPollyOptLevel0Passes);
-
/// @brief Register Polly to be available as an optimizer
///
/// We currently register Polly such that it runs as early as possible. This has
More information about the llvm-commits
mailing list