OSDN Git Service

NFC: add early exit in ModuleSummaryAnalysis
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Tue, 30 Aug 2016 00:46:26 +0000 (00:46 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Tue, 30 Aug 2016 00:46:26 +0000 (00:46 +0000)
commitbad305ab077964f788063f648350a37827463207
tree53cb78b23564442ff0616cc3ac3f7fea6bc075da
parent9cb78e2878eb33411e8fb6cfbdf1398084491d8c
NFC: add early exit in ModuleSummaryAnalysis

Summary:
Changed this code because it was not very readable.
The one question that I got after changing it is, should we
count calls to intrinsics? We don't add them to caller summary,
so maybe we shouldn't also count them?

Reviewers: tejohnson, eraman, mehdi_amini

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23949

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280036 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ModuleSummaryAnalysis.cpp