Immutability and referential transparency help compilers to perform extensive optimizations, replacing the need of manual optimization of code and free programmers from this trade-off.
For example, this applies when you're using compile time constants (const val), as the compiler knows that the value of those variables will never change.