Common subexpressions are not optimized to single one?