[PATCH] D79162: [Analysis] TTI: Add CastContextHint for getCastInstrCost
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 03:57:50 PDT 2020
samparker added a comment.
This feels like a hack to me too, I think we need to move away from passing snippets of information to the instruction cost hooks. There are many other places in the vectorizer where instruction costs are calculated too. What information do we have at this point and what do we need to know? I like the sound of TTI taking something like the LoopVectorizationLegality object, but doing it at a higher level than on a per-instruction basis, allowing TTI to look at the loop.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79162/new/
https://reviews.llvm.org/D79162
More information about the llvm-commits
mailing list