nir: add extra const notation in compare_blocks()