Hi, I want to find a pass to implement instruction duplication. Would you give me some links or related files? Thank you very much!

Duplication for what reason? Instructions are duplicated in transformations such as loop unrolling, which llvm does. If you’re looking for code samples that’d be where I would start