mirror of https://git.wuffs.org/MWCC
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
#include "compiler/IrOptimizer.h"
|
|
#include "compiler/CParser.h"
|
|
|
|
Boolean DoScalarize;
|
|
Boolean DoLinearize;
|
|
Boolean EarlyReturn;
|
|
Boolean IRO_CPFirstTime;
|
|
Boolean VectorPhaseCalledFromUnroll;
|
|
Boolean IRO_Log;
|
|
static Boolean stIsSetup;
|
|
|
|
static void CountRefToObject() {
|
|
}
|
|
|
|
static void CountARef() {
|
|
}
|
|
|
|
static void CountDoubleInd() {
|
|
}
|
|
|
|
static void CountUsage() {
|
|
}
|
|
|
|
Statement *IRO_Optimizer(Object *obj, Statement *stmt) {
|
|
}
|
|
|
|
void IRO_Setup(void) {
|
|
static Boolean ENodeArraysHaveBeenInitialized;
|
|
}
|
|
|
|
void IRO_Cleanup(void) {
|
|
}
|
|
|
|
void CodeGen_UpdateOptimizerOptions(void) {
|
|
copts.opt_dead_code = copts.optimizationlevel > 0;
|
|
copts.opt_propagation = copts.optimizationlevel > 1;
|
|
copts.opt_common_subs = copts.optimizationlevel > 1;
|
|
copts.opt_vectorize_loops = copts.optimizationlevel > 2;
|
|
copts.opt_unroll_loops = copts.optimizationlevel > 2;
|
|
copts.opt_dead_assignments = copts.optimizationlevel > 2;
|
|
copts.opt_lifetimes = copts.optimizationlevel > 2;
|
|
copts.opt_strength_reduction = copts.optimizationlevel > 2;
|
|
copts.opt_loop_invariants = copts.optimizationlevel > 2;
|
|
copts._B4 = copts.optimizationlevel > 3;
|
|
}
|