[llvm][NFC] Use CallBase instead of Instruction in ProfileSummaryInfo
authorMircea Trofin <mtrofin@google.com>
Mon, 27 Apr 2020 16:07:18 +0000 (09:07 -0700)
committerMircea Trofin <mtrofin@google.com>
Tue, 28 Apr 2020 03:47:52 +0000 (20:47 -0700)
commitcb56e9b923367266a9affdfaf106f4648ad16275
tree2fcb23a89dd0d7a45df1366bb7e36e1b36695f29
parentcbb61831f53f34b1c75108fa1b0ed2841512c6e2
[llvm][NFC] Use CallBase instead of Instruction in ProfileSummaryInfo

Summary:
getProfileCount requires the parameter be a valid CallBase, and its uses
reflect that.

Reviewers: dblaikie, craig.topper, wmi

Subscribers: eraman, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78940
llvm/include/llvm/Analysis/ProfileSummaryInfo.h
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/Analysis/ProfileSummaryInfo.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp