https://github.com/artagnon commented: Does this rely on removeDeadRecipes being run on line 7271? If so, perhaps we can move it after simplifyRecipes on line 7245, with no changes? https://github.com/llvm/llvm-project/pull/160572