3 ms·
In general, at the optimization IR level of any decent compiler or JIT, most straight-line code gets reduced into some form of expression DAG for common subexpr
by jcranmer 10y ago
In general, at the optimization IR level of any decent compiler or JIT, most straight-line code gets reduced into some form of expression DAG for common subexpression elimination and other similar optimizations, meaning that
var x = a + b;
call(x + c);
and
call(a + b + c);
would be literally indistinguishable.