mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
do not bother inlining nullary functions without return values. The only
effect these calls can have is due to global variables, and these passes all use the globals graph to capture their effect anyway. This speeds up the BU pass very slightly on perlbmk, reducing the number of dsnodes allocated from 98913 to 96423. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -406,6 +406,9 @@ void EquivClassGraphs::processGraph(DSGraph &G) {
|
||||
assert(calls.insert(TheCall).second &&
|
||||
"Call instruction occurs multiple times in graph??");
|
||||
|
||||
if (CS.getRetVal().isNull() && CS.getNumPtrArgs() == 0)
|
||||
continue;
|
||||
|
||||
// Inline the common callee graph into the current graph, if the callee
|
||||
// graph has not changed. Note that all callees should have the same
|
||||
// graph so we only need to do this once.
|
||||
|
Reference in New Issue
Block a user