Mercurial > projects > ldc
comparison gen/optimizer.cpp @ 1547:259b031f3d22
Some minor cleanups
* remove an #ifdef USE_METADATA I accidently left in
* remove now unneeded llvm-version includes
* fix indentation in metadata.h
* prevent the "Found native target" message from interrupting ccmake
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 20 Jul 2009 18:16:11 +0200 |
parents | d1652c8fb4f6 |
children | 3adcb70700cb |
comparison
equal
deleted
inserted
replaced
1546:f9660d9cf2ba | 1547:259b031f3d22 |
---|---|
157 | 157 |
158 if (optimizeLevel >= 2) { | 158 if (optimizeLevel >= 2) { |
159 if (!disableLangSpecificPasses) { | 159 if (!disableLangSpecificPasses) { |
160 if (!disableSimplifyRuntimeCalls) | 160 if (!disableSimplifyRuntimeCalls) |
161 addPass(pm, createSimplifyDRuntimeCalls()); | 161 addPass(pm, createSimplifyDRuntimeCalls()); |
162 | 162 |
163 #ifdef USE_METADATA | |
164 if (!disableGCToStack) | 163 if (!disableGCToStack) |
165 addPass(pm, createGarbageCollect2Stack()); | 164 addPass(pm, createGarbageCollect2Stack()); |
166 #endif | |
167 } | 165 } |
168 // Run some clean-up passes | 166 // Run some clean-up passes |
169 addPass(pm, createInstructionCombiningPass()); | 167 addPass(pm, createInstructionCombiningPass()); |
170 addPass(pm, createScalarReplAggregatesPass()); | 168 addPass(pm, createScalarReplAggregatesPass()); |
171 addPass(pm, createCFGSimplificationPass()); | 169 addPass(pm, createCFGSimplificationPass()); |