diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-03 15:20:36 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-03 15:20:36 +0000 | 
| commit | d288ef4c1788d3a951a7558c68312c2d320612b1 (patch) | |
| tree | ece909a5200f95f85f0813599a9500620f4d9217 /lib/Analysis/ModuleSummaryAnalysis.cpp | |
| parent | f382538d471e38a9b98f016c4caebd24c8d60b62 (diff) | |
Notes
Diffstat (limited to 'lib/Analysis/ModuleSummaryAnalysis.cpp')
| -rw-r--r-- | lib/Analysis/ModuleSummaryAnalysis.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/lib/Analysis/ModuleSummaryAnalysis.cpp b/lib/Analysis/ModuleSummaryAnalysis.cpp index 26706f5509bab..3253f27c010da 100644 --- a/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -275,7 +275,7 @@ computeFunctionSummary(ModuleSummaryIndex &Index, const Module &M,        // FIXME: refactor this to use the same code that inliner is using.        F.isVarArg();    GlobalValueSummary::GVFlags Flags(F.getLinkage(), NotEligibleForImport, -                                    /* LiveRoot = */ false); +                                    /* Live = */ false);    auto FuncSummary = llvm::make_unique<FunctionSummary>(        Flags, NumInsts, RefEdges.takeVector(), CallGraphEdges.takeVector(),        TypeTests.takeVector(), TypeTestAssumeVCalls.takeVector(), @@ -295,7 +295,7 @@ computeVariableSummary(ModuleSummaryIndex &Index, const GlobalVariable &V,    findRefEdges(Index, &V, RefEdges, Visited);    bool NonRenamableLocal = isNonRenamableLocal(V);    GlobalValueSummary::GVFlags Flags(V.getLinkage(), NonRenamableLocal, -                                    /* LiveRoot = */ false); +                                    /* Live = */ false);    auto GVarSummary =        llvm::make_unique<GlobalVarSummary>(Flags, RefEdges.takeVector());    if (NonRenamableLocal) @@ -308,7 +308,7 @@ computeAliasSummary(ModuleSummaryIndex &Index, const GlobalAlias &A,                      DenseSet<GlobalValue::GUID> &CantBePromoted) {    bool NonRenamableLocal = isNonRenamableLocal(A);    GlobalValueSummary::GVFlags Flags(A.getLinkage(), NonRenamableLocal, -                                    /* LiveRoot = */ false); +                                    /* Live = */ false);    auto AS = llvm::make_unique<AliasSummary>(Flags, ArrayRef<ValueInfo>{});    auto *Aliasee = A.getBaseObject();    auto *AliaseeSummary = Index.getGlobalValueSummary(*Aliasee); @@ -323,7 +323,7 @@ computeAliasSummary(ModuleSummaryIndex &Index, const GlobalAlias &A,  static void setLiveRoot(ModuleSummaryIndex &Index, StringRef Name) {    if (ValueInfo VI = Index.getValueInfo(GlobalValue::getGUID(Name)))      for (auto &Summary : VI.getSummaryList()) -      Summary->setLiveRoot(); +      Summary->setLive(true);  }  ModuleSummaryIndex llvm::buildModuleSummaryIndex( @@ -423,8 +423,8 @@ ModuleSummaryIndex llvm::buildModuleSummaryIndex(              return;            assert(GV->isDeclaration() && "Def in module asm already has definition");            GlobalValueSummary::GVFlags GVFlags(GlobalValue::InternalLinkage, -                                              /* NotEligibleToImport */ true, -                                              /* LiveRoot */ true); +                                              /* NotEligibleToImport = */ true, +                                              /* Live = */ true);            CantBePromoted.insert(GlobalValue::getGUID(Name));            // Create the appropriate summary type.            if (isa<Function>(GV)) { | 
