[PATCH] D36896: [TargetTransformInfo] Call target getMemoryOpCost for LoadInst from getUserCost

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 09:48:51 PDT 2017


hfinkel added a comment.

We currently have two cost models in TTI. One is for the vectorizer and it is supposed to measure normalized reciprocal throughputs. The other model, the "user cost" model, is used by the inliner, the loop unroller, and a few other things. This model measures some less-well-defined combination of performance factors (thoughput/latency) and code size. I don't know whether tying these things together makes sense. At the risk of going down some rabbit hole, we should probably answer that question. If it does make sense, we should tie them together more completely than just for memory operations.


https://reviews.llvm.org/D36896





More information about the llvm-commits mailing list