tomtor wrote: https://lab.llvm.org/buildbot/#/builders/145/builds/8944 It is PPC specific? Anyway, having a .cpp is more future proof. I did copy the RISCV cost function while at it, because it is similar in cost priority. @Patryk27 https://github.com/llvm/llvm-project/pull/152841