Optimizations on ILP and CPI for ILP