compiler: some optimizations.