// Don't optimise in library annotation mode - we just need one pass of the SideEffectVisitor (via TreeConverter)
// and we're done,
if (!OptimiserOptions.annotatingLibrary) {
OptimisationPhaseManager.register(new FinalFolder(), AFTER_DESUGAR);
OptimisationPhaseManager.register(new ConstFold(), AFTER_DESUGAR);
OptimisationPhaseManager.register(new ShortFunc(), AFTER_DESUGAR);
OptimisationPhaseManager.register(new Unbox(), AFTER_DESUGAR);
// TODO: Repair and re-enable this.
// OptimisationPhaseManager.register(new AssignmentStrip(), AFTER_DESUGAR);
OptimisationPhaseManager.register(new LoopInvar(), AFTER_DESUGAR);