mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[StackSafety, NFC] Don't insert empty objects into the map
Result should be the same but it makes generateParamAccessSummary 5x faster.
This commit is contained in:
parent
f9f8ff8718
commit
5f096386c6
@ -928,7 +928,7 @@ void llvm::generateParamAccessSummary(ModuleSummaryIndex &Index) {
|
||||
for (auto &GVS : Index) {
|
||||
for (auto &GV : GVS.second.SummaryList) {
|
||||
FunctionSummary *FS = dyn_cast<FunctionSummary>(GV.get());
|
||||
if (!FS)
|
||||
if (!FS || FS->paramAccesses().empty())
|
||||
continue;
|
||||
if (FS->isLive() && FS->isDSOLocal()) {
|
||||
FunctionInfo<FunctionSummary> FI;
|
||||
|
Loading…
Reference in New Issue
Block a user