Hi Carlos, > I have a pass that duplicates all instructions and keeps a "reference > map" of duplicated values, which is later used to update all the > references, thus creating a whole copy of a previous function. ... why don't you just call something like CloneFunction? Ciao, Duncan.