compiler: optimize goto's