pipeline computation of last_pass

Change-Id: I64cb567c633a9ef4e6c0f6cc29a7571105da579e