mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Make helper static, so it can be inlined into its sole caller.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
309a2c4e3b
commit
4210b34e59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user