Skip to content

Commit 1d99c3d

Browse files
committed
[Attributor] We (should) keep the CG updated so we can mark it as preserved
1 parent 858c75f commit 1d99c3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/IPO/Attributor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,9 @@ PreservedAnalyses AttributorCGSCCPass::run(LazyCallGraph::SCC &C,
23242324
InformationCache InfoCache(M, AG, Allocator, /* CGSCC */ &Functions);
23252325
if (runAttributorOnFunctions(InfoCache, Functions, AG, CGUpdater)) {
23262326
// FIXME: Think about passes we will preserve and add them here.
2327-
return PreservedAnalyses::none();
2327+
PreservedAnalyses PA;
2328+
PA.preserve<FunctionAnalysisManagerCGSCCProxy>();
2329+
return PA;
23282330
}
23292331
return PreservedAnalyses::all();
23302332
}

0 commit comments

Comments
 (0)