[llvm] r292195 - llc: Initialize more passes
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 21:11:25 PST 2017
Author: arsenm
Date: Mon Jan 16 23:11:25 2017
New Revision: 292195
URL: http://llvm.org/viewvc/llvm-project?rev=292195&view=rev
Log:
llc: Initialize more passes
Targets can add these. Initialize them so -print-before/-print-after
etc. work.
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=292195&r1=292194&r2=292195&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Mon Jan 16 23:11:25 2017
@@ -267,6 +267,8 @@ int main(int argc, char **argv) {
initializeCountingFunctionInserterPass(*Registry);
initializeUnreachableBlockElimLegacyPassPass(*Registry);
initializeConstantHoistingLegacyPassPass(*Registry);
+ initializeScalarOpts(*Registry);
+ initializeVectorization(*Registry);
// Register the target printer for --version.
cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
More information about the llvm-commits
mailing list