// very much more convenient than working on the actual tree if you don't care about the desugared things.)
// 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.