Merge "Pass stats into the loop optimization phase."
am: 9af08e64d0

Change-Id: I9a5affcfa131c4fabf7bab7868e488d03fef1320