I did compiler work in a past life, but it was C compilers where you have to be crazy conservative in your transformations.