forked from OSchip/llvm-project
Make helper static, so it can be inlined into its sole caller.
llvm-svn: 152515
This commit is contained in:
parent
fa432f30d4
commit
71ff880ff9
|
@ -272,9 +272,9 @@ static unsigned countCodeReductionForAllocaICmp(const CodeMetrics &Metrics,
|
||||||
/// The reduction for this instruction is added to the SROAReduction output
|
/// The reduction for this instruction is added to the SROAReduction output
|
||||||
/// parameter. Returns false if this instruction is expected to defeat SROA in
|
/// parameter. Returns false if this instruction is expected to defeat SROA in
|
||||||
/// general.
|
/// general.
|
||||||
bool countCodeReductionForSROAInst(Instruction *I,
|
static bool countCodeReductionForSROAInst(Instruction *I,
|
||||||
SmallVectorImpl<Value *> &Worklist,
|
SmallVectorImpl<Value *> &Worklist,
|
||||||
unsigned &SROAReduction) {
|
unsigned &SROAReduction) {
|
||||||
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
|
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
|
||||||
if (!LI->isSimple())
|
if (!LI->isSimple())
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue