[PATCH] D71501: Cost Annotation Writer for InlineCost

Kirill Naumov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 15:02:25 PST 2020


knaumov updated this revision to Diff 238899.
knaumov added a comment.

Changed pait<int, int> to struct InlineCostDetails in DenseMap and changed comment defining CostThrehsoldMap.
@mtrofin : Yes, the DenseMap stores the delta of the cost and threshold after inlining the instruction, not just a snapshot.
This is done in order to see the exact cost/change in the threshold it would take to inline the instruction.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71501/new/

https://reviews.llvm.org/D71501

Files:
  llvm/lib/Analysis/InlineCost.cpp
  llvm/test/DebugInfo/debuginline-cost-delta.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71501.238899.patch
Type: text/x-patch
Size: 11332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200117/9c8d1d5a/attachment.bin>


More information about the llvm-commits mailing list