[llvm-dev] [RFC] Improving integer divide optimization (related to D12082)

Steve King via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 23 09:35:19 PDT 2015

On Sun, Aug 23, 2015 at 12:34 AM, Kuperstein, Michael M
<michael.m.kuperstein at intel.com> wrote:
> The way I understand -Os is “don’t increase size unless there’s a clear and
> significant performance gain” – that is, much less aggressive in terms of
> code size than the definition you gave below.
> Since leaving the div as-is can be very expensive compared to the
> alternative sequence, I thought -Oz was the safe way to go with this.

Sounds reasonable and the proposed patch keeps -Oz the default.

More information about the llvm-dev mailing list