[PATCH] D132623: [CodeGen] Disable tail calls at -O0/-O1

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 14:02:48 PDT 2022


jrtc27 added a comment.

In D132623#3775514 <https://reviews.llvm.org/D132623#3775514>, @aeubanks wrote:

> The contract we have with the -O1 pipeline is to attempt to generate debuggable code as much as possible

No it's not. What we say is:

      :option:`-O0` Means "no optimization": this level compiles the fastest and
      generates the most debuggable code.
  
      :option:`-O1` Somewhere between :option:`-O0` and :option:`-O2`.
  
      :option:`-O2` Moderate level of optimization which enables most
      optimizations.
  
  ...
  
  
      :option:`-Og` Like :option:`-O1`. In future versions, this option might
      disable different optimizations in order to improve debuggability.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132623/new/

https://reviews.llvm.org/D132623



More information about the llvm-commits mailing list