Escape analysis for straight-line code