1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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 2640a5cd72
commit d9896dc54f

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;