projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
309a2c4
)
Make helper static, so it can be inlined into its sole caller.
author
Benjamin Kramer
<benny.kra@googlemail.com>
Sat, 10 Mar 2012 22:41:06 +0000
(22:41 +0000)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Sat, 10 Mar 2012 22:41:06 +0000
(22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152515
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/InlineCost.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/InlineCost.cpp
b/lib/Analysis/InlineCost.cpp
index d1c91a2a4921791f6e1a1e85659126a53df8ca38..68d3d4676c2c21cfcb810faf91439ca0167f7190 100644
(file)
--- a/
lib/Analysis/InlineCost.cpp
+++ b/
lib/Analysis/InlineCost.cpp
@@
-272,9
+272,9
@@
static unsigned countCodeReductionForAllocaICmp(const CodeMetrics &Metrics,
/// The reduction for this instruction is added to the SROAReduction output
/// parameter. Returns false if this instruction is expected to defeat SROA in
/// general.
-bool countCodeReductionForSROAInst(Instruction *I,
- SmallVectorImpl<Value *> &Worklist,
- unsigned &SROAReduction) {
+
static
bool countCodeReductionForSROAInst(Instruction *I,
+
SmallVectorImpl<Value *> &Worklist,
+
unsigned &SROAReduction) {
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
if (!LI->isSimple())
return false;