From b22317809b0b732a8001be8f227aeb10a63aefbf Mon Sep 17 00:00:00 2001
From: Yifan Zhao <yifanz16@illinois.edu>
Date: Sun, 4 Apr 2021 00:49:49 -0500
Subject: [PATCH] hpvm-clang defaults to O1 optim level

---
 hpvm/tools/hpvm-clang/main.py.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hpvm/tools/hpvm-clang/main.py.in b/hpvm/tools/hpvm-clang/main.py.in
index b20af0b80f..6d3c4595ea 100644
--- a/hpvm/tools/hpvm-clang/main.py.in
+++ b/hpvm/tools/hpvm-clang/main.py.in
@@ -229,8 +229,8 @@ See option -b for that."""
         help="[clang emit-llvm] clang++ flags (such as -ffastmath)"
     )
     parser.add_argument(
-        "-O", type=str, default="0", metavar="level",
-        help="[clang emit-llvm] Optimization level"
+        "-O", type=str, default="1", metavar="level",
+        help="[clang emit-llvm] Optimization level. Note that default is -O1."
     )
     parser.add_argument(
         "--std", type=str,
-- 
GitLab