[all-commits] [llvm/llvm-project] 829044: Map -O to -O1 instead of -O2

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon May 18 15:54:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 82904401e3278c3f3a54481d6cd06cc43b801e3b
      https://github.com/llvm/llvm-project/commit/82904401e3278c3f3a54481d6cd06cc43b801e3b
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CodeGen/builtins-systemz-zvector-constrained.c
    M clang/test/CodeGen/builtins-systemz-zvector.c
    M clang/test/CodeGen/builtins-systemz-zvector2-constrained.c
    M clang/test/CodeGen/builtins-systemz-zvector2.c
    M clang/test/CodeGen/builtins-systemz-zvector3-constrained.c
    M clang/test/CodeGen/builtins-systemz-zvector3.c
    M clang/test/CodeGen/fma-builtins-constrained.c
    M clang/test/Driver/O.c
    M clang/test/Driver/clang_f_opts.c
    M clang/test/Driver/lto.c

  Log Message:
  -----------
  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




More information about the All-commits mailing list