projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
eae2202
)
make the inliner do less work for leaf functions.
author
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2010 00:47:08 +0000
(
00:47
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 20 Apr 2010 00:47:08 +0000
(
00:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101846
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/Inliner.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/Inliner.cpp
b/lib/Transforms/IPO/Inliner.cpp
index 07918543d40390764d0608c18832c05664640685..6c732d21f28d05229bd0c0d9b7ef25d4feeebc97 100644
(file)
--- a/
lib/Transforms/IPO/Inliner.cpp
+++ b/
lib/Transforms/IPO/Inliner.cpp
@@
-333,6
+333,10
@@
bool Inliner::runOnSCC(CallGraphSCC &SCC) {
DEBUG(dbgs() << ": " << CallSites.size() << " call sites.\n");
+ // If there are no calls in this function, exit early.
+ if (CallSites.empty())
+ return false;
+
// Now that we have all of the call sites, move the ones to functions in the
// current SCC to the end of the list.
unsigned FirstCallInSCC = CallSites.size();