ychen added a comment. It looks like belong to `addFunctionSimplificationPasses`. How about keeping it Function pass using initialization once? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D86178/new/ https://reviews.llvm.org/D86178