LoopUnroll: Make canUnrollCompletely static - it doesn't use any state. NFC

llvm-svn: 257427
This commit is contained in:
Justin Bogner 2016-01-12 01:06:32 +00:00
parent a1dd493159
commit 921b04e9a4
1 changed files with 5 additions and 11 deletions

View File

@ -210,11 +210,6 @@ namespace {
AU.addPreserved<DominatorTreeWrapperPass>(); AU.addPreserved<DominatorTreeWrapperPass>();
AU.addPreserved<GlobalsAAWrapperPass>(); AU.addPreserved<GlobalsAAWrapperPass>();
} }
bool canUnrollCompletely(Loop *L, unsigned Threshold,
unsigned PercentDynamicCostSavedThreshold,
unsigned DynamicCostSavingsDiscount,
uint64_t UnrolledCost, uint64_t RolledDynamicCost);
}; };
} }
@ -783,12 +778,11 @@ static void SetLoopAlreadyUnrolled(Loop *L) {
L->setLoopID(NewLoopID); L->setLoopID(NewLoopID);
} }
bool LoopUnroll::canUnrollCompletely(Loop *L, unsigned Threshold, static bool canUnrollCompletely(Loop *L, unsigned Threshold,
unsigned PercentDynamicCostSavedThreshold, unsigned PercentDynamicCostSavedThreshold,
unsigned DynamicCostSavingsDiscount, unsigned DynamicCostSavingsDiscount,
uint64_t UnrolledCost, uint64_t UnrolledCost,
uint64_t RolledDynamicCost) { uint64_t RolledDynamicCost) {
if (Threshold == NoThreshold) { if (Threshold == NoThreshold) {
DEBUG(dbgs() << " Can fully unroll, because no threshold is set.\n"); DEBUG(dbgs() << " Can fully unroll, because no threshold is set.\n");
return true; return true;