[PATCH] D37471: [TTI] Implement getCastInstrCost

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 6 04:59:58 PDT 2017


samparker updated this revision to Diff 113988.
samparker retitled this revision from "[BasicTTIImpl] Remove Trunc and ZExt cost handling" to "[TTI] Implement getCastInstrCost".
samparker edited the summary of this revision.
samparker added a comment.

Hi Hal,

Thanks for questions. I have to admit that I've been confused by how TTI is implemented, it seems rather convoluted to me. I've removed my previous change and, instead, I've reorganised some of the logic in TargetTransformInfoImplBase which hopefully makes sense. I can see that implementing isTruncateFree in the ARM backend should also solve my problem and I will look into that next.

Thanks,
sam


https://reviews.llvm.org/D37471

Files:
  include/llvm/Analysis/TargetTransformInfoImpl.h
  test/Transforms/SimplifyCFG/ARM/select-trunc-i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37471.113988.patch
Type: text/x-patch
Size: 7408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170906/b62d1231/attachment.bin>


More information about the llvm-commits mailing list