revised pipeline computation of last_pass

Change-Id: I46605ccb2d61b6e442a3b259f861c25c98ca2d45