fhahn added a comment. I put all patches on a branch, if that helps: https://github.com/fhahn/llvm-project/tree/vplan-cost-upfront CHANGES SINCE LAST ACTION https://reviews.llvm.org/D142015/new/ https://reviews.llvm.org/D142015