Compiler optimizations