From: Matt Arsenault Date: Sat, 19 Jul 2014 19:16:34 +0000 (+0000) Subject: XXX - Increase unroll threshold X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f36bf5f3d96ad44c8576f4be5895230703b78da;p=oota-llvm.git XXX - Increase unroll threshold git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213459 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/AMDGPUTargetTransformInfo.cpp b/lib/Target/R600/AMDGPUTargetTransformInfo.cpp index 88934b65876..cb15883d701 100644 --- a/lib/Target/R600/AMDGPUTargetTransformInfo.cpp +++ b/lib/Target/R600/AMDGPUTargetTransformInfo.cpp @@ -101,6 +101,8 @@ bool AMDGPUTTI::hasBranchDivergence() const { return true; } void AMDGPUTTI::getUnrollingPreferences(Loop *L, UnrollingPreferences &UP) const { + UP.Threshold = 300; + for (const BasicBlock *BB : L->getBlocks()) { for (const Instruction &I : *BB) { const GetElementPtrInst *GEP = dyn_cast(&I); @@ -120,7 +122,7 @@ void AMDGPUTTI::getUnrollingPreferences(Loop *L, // // Don't use the maximum allowed value here as it will make some // programs way too big. - UP.Threshold = 500; + UP.Threshold = 600; } } }