immediate optimization for branch