Map -O to -O1 instead of -O2
authorFangrui Song <maskray@google.com>
Thu, 14 May 2020 00:25:04 +0000 (17:25 -0700)
committerFangrui Song <maskray@google.com>
Mon, 18 May 2020 22:53:41 +0000 (15:53 -0700)
commit82904401e3278c3f3a54481d6cd06cc43b801e3b
tree4f273ed2daea85ce7cd83febb6ff6956a4d7e316
parent682e739638a9c569d4c5c358ab75365175a95efc
Map -O to -O1 instead of -O2

rL82131 changed -O from -O1 to -O2, because -O1 was not different from
-O2 at that time.

GCC treats -O as -O1 and there is now work to make -O1 meaningful.
We can change -O back to -O1 again.

Reviewed By: echristo, dexonsmith, arphaman

Differential Revision: https://reviews.llvm.org/D79916
12 files changed:
clang/include/clang/Driver/Options.td
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/builtins-systemz-zvector-constrained.c
clang/test/CodeGen/builtins-systemz-zvector.c
clang/test/CodeGen/builtins-systemz-zvector2-constrained.c
clang/test/CodeGen/builtins-systemz-zvector2.c
clang/test/CodeGen/builtins-systemz-zvector3-constrained.c
clang/test/CodeGen/builtins-systemz-zvector3.c
clang/test/CodeGen/fma-builtins-constrained.c
clang/test/Driver/O.c
clang/test/Driver/clang_f_opts.c
clang/test/Driver/lto.c