[llvm] r213459 - XXX - Increase unroll threshold

Matt Arsenault Matthew.Arsenault at amd.com
Sat Jul 19 12:16:34 PDT 2014


Author: arsenm
Date: Sat Jul 19 14:16:34 2014
New Revision: 213459

URL: http://llvm.org/viewvc/llvm-project?rev=213459&view=rev
Log:
XXX - Increase unroll threshold

Modified:
    llvm/trunk/lib/Target/R600/AMDGPUTargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/R600/AMDGPUTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUTargetTransformInfo.cpp?rev=213459&r1=213458&r2=213459&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUTargetTransformInfo.cpp Sat Jul 19 14:16:34 2014
@@ -101,6 +101,8 @@ bool AMDGPUTTI::hasBranchDivergence() co
 
 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<GetElementPtrInst>(&I);
@@ -120,7 +122,7 @@ void AMDGPUTTI::getUnrollingPreferences(
         //
         // Don't use the maximum allowed value here as it will make some
         // programs way too big.
-        UP.Threshold = 500;
+        UP.Threshold = 600;
       }
     }
   }





More information about the llvm-commits mailing list