[PATCH] D81223: Size LTO (1/3): Standardizing the use of OptimizationLevel

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 5 20:36:30 PDT 2020


mehdi_amini added a comment.

In D81223#2076420 <https://reviews.llvm.org/D81223#2076420>, @rcorcs wrote:

> This patch standardizes the use of OptimizationLevel across PassBuilder, PassManagerBuilder, LTO configuration, and LTO code generators. Even with this patch, further work is still needed to standardize the use of OptimizationLevel across LLVM.


The distinction of size level for LTO isn't obvious to me, this is why I'm asking some clarification here.
In general with LTO the Os/Oz frontend flags will trigger the addition of function attributes, however the Os/Oz flags aren't impacting the optimizer pipeline during LTO (so they basically have no effect during LTO and get mapped to O2 <https://reviews.llvm.org/owners/package/2/> directly).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81223





More information about the cfe-commits mailing list