mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 15:10:33 +00:00
FunctionAttrs: Skip it if the effective SCC (ignoring optnone functions) is empty
Minor optimization but mostly simplifies my debugging so I'm not dealing with empty SCCNodeSets while investigating issues in this optimization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
465de97122
commit
ffc893deb7
@ -1188,6 +1188,10 @@ static bool runImpl(CallGraphSCC &SCC, AARGetterT AARGetter) {
|
||||
SCCNodes.insert(F);
|
||||
}
|
||||
|
||||
// Skip it if the SCC only contains optnone functions.
|
||||
if (SCCNodes.empty())
|
||||
return Changed;
|
||||
|
||||
Changed |= addArgumentReturnedAttrs(SCCNodes);
|
||||
Changed |= addReadAttrs(SCCNodes, AARGetter);
|
||||
Changed |= addArgumentAttrs(SCCNodes);
|
||||
|
Loading…
Reference in New Issue
Block a user