[PATCH] D79162: [Analysis] TTI: Add CastContextHint for getCastInstrCost
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 01:34:07 PDT 2020
fhahn added inline comments.
================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfo.h:1011
+ Interleave, ///< The cast is used with an interleaved load/store.
+ Reversed, ///< The cast is used with a reversed load/store.
+ };
----------------
Did you consider also excluding non load/store cast uses? For example, it might be worth to include arithmetic instructions into which casts can be folded, e.g. USUBL & co on AArch64.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79162/new/
https://reviews.llvm.org/D79162
More information about the llvm-commits
mailing list