samparker abandoned this revision. samparker added a comment. Ah, nice, yes separating the different costs sounds great. Ok, I will abandon this and implement the target hook. Thanks for your help. https://reviews.llvm.org/D37471