Optimize compiler pass of service tag