Slight optimization: template doesn't instrument instructions if not necessary (no ref/def registers)