add instruction code transform for optimizations