OSDN Git Service

Refactor callsite cost computation into a helper function /NFC
authorXinliang David Li <davidxl@google.com>
Tue, 2 May 2017 05:38:41 +0000 (05:38 +0000)
committerXinliang David Li <davidxl@google.com>
Tue, 2 May 2017 05:38:41 +0000 (05:38 +0000)
commitafb34f6072211fc9deb6d68abc9d7ea50752e8d4
treeefecb85b0b7aab9cbadfc402c4d150f59a028dfb
parent0a9c93cad35a8687d53bc02ae144bbf4555423da
Refactor callsite cost computation into a helper function /NFC

Makes code more readable. The function will also be used
by the partial inlining's cost analysis.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301899 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InlineCost.h
lib/Analysis/InlineCost.cpp