add automatic tiling optimization