You could also split the patch into adding the API and using it in the next commit. I.e. there's no reason why isRematerializable can't be set for the instructions separate from adding TII->isCheapAsAMove() http://reviews.llvm.org/D4361