summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-07-19 19:16:34 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-07-19 19:16:34 +0000
commitb38677ee2fb93602516bc17f4df4c2fb70f5f6a8 (patch)
treefdfe7e0bff39acf8c3304e8b8b872073b87a709d /llvm/lib
parentad14ce84b7091aa81eb75d0df0f0ce6788688fb3 (diff)
downloadbcm5719-llvm-b38677ee2fb93602516bc17f4df4c2fb70f5f6a8.tar.gz
bcm5719-llvm-b38677ee2fb93602516bc17f4df4c2fb70f5f6a8.zip
XXX - Increase unroll threshold
llvm-svn: 213459
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/AMDGPUTargetTransformInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUTargetTransformInfo.cpp b/llvm/lib/Target/R600/AMDGPUTargetTransformInfo.cpp
index 88934b65876..cb15883d701 100644
--- a/llvm/lib/Target/R600/AMDGPUTargetTransformInfo.cpp
+++ b/llvm/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<GetElementPtrInst>(&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;
}
}
}
OpenPOWER on IntegriCloud