Not hoisting it is probably always bad. The trick is deciding whether we should give all constants this kind of hoisting optimization. Probably the answer is no, so we need a heuristic.
*** This bug has been marked as a duplicate of bug 152202 ***