diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2015-11-12 16:47:05 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-11-25 11:45:08 +0800 |
commit | 5d5aa6085ea0724ecea7471f4b710d8f21e206bc (patch) | |
tree | a1cfc56d6d0dc9c8d51573ede48151213f632c6e | |
parent | 23fceea309638afdbe34271cc55ea01d680cb402 (diff) |
GBE: decrease the loop unrolling threshold to 640.
1024 is some how too large for some kernels and may cause
some kernels fail to build due to lack of enough scratching
space.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: Ruiling Song <ruiling.song@intel.com>
-rw-r--r-- | backend/src/llvm/llvm_to_gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/llvm/llvm_to_gen.cpp b/backend/src/llvm/llvm_to_gen.cpp index 8a076ca2..732278ef 100644 --- a/backend/src/llvm/llvm_to_gen.cpp +++ b/backend/src/llvm/llvm_to_gen.cpp @@ -144,7 +144,7 @@ namespace gbe MPM.add(createIndVarSimplifyPass()); // Canonicalize indvars MPM.add(createLoopIdiomPass()); // Recognize idioms like memset. MPM.add(createLoopDeletionPass()); // Delete dead loops - MPM.add(createLoopUnrollPass(1024)); //1024, 32, 1024, 512)); //Unroll loops + MPM.add(createLoopUnrollPass(640)); //1024, 32, 1024, 512)); //Unroll loops if(optLevel > 0) { MPM.add(createSROAPass(/*RequiresDomTree*/ false)); MPM.add(createGVNPass()); // Remove redundancies |