[PATCH] D34057: [TargetTransformInfo, API] Add optional list of operands to TTI::getUserCost

Evgeny Astigeevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 09:29:41 PDT 2017


eastig created this revision.

The changes are a result of discussion of https://reviews.llvm.org/D33685.
It solves the following problem:

> 1. We can inform getGEPCost about simplified indices to help it with calculating the cost. But getGEPCost does not take into account the context which GEPs are used in.
> 2. We have getUserCost which can take the context into account but we cannot inform about simplified indices.

With the changes getUserCost will have access to additional information as getGEPCost has.
The provided list is empty by default.


https://reviews.llvm.org/D34057

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
  lib/Target/Hexagon/HexagonTargetTransformInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34057.102037.patch
Type: text/x-patch
Size: 5308 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170609/69a2398f/attachment.bin>


More information about the llvm-commits mailing list