Fix a bug in live range calculation

This was causing more variables to be live than was actually required.