Change optimize level to -O2, to avoid loopunswitch opt.
authorYang Rong <rong.r.yang@intel.com>
Wed, 9 Oct 2013 06:36:26 +0000 (14:36 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 9 Oct 2013 09:35:41 +0000 (17:35 +0800)
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/program.cpp

index ffd31d9..f05899e 100644 (file)
@@ -475,7 +475,7 @@ namespace gbe {
     // XXX we haven't implement those builtin functions,
     // so disable it currently.
     args.push_back("-fno-builtin");
-    if(bOpt)  args.push_back("-O3");
+    if(bOpt)  args.push_back("-O2");
 #if LLVM_VERSION_MINOR <= 2
     args.push_back("-triple");
     args.push_back("nvptx");