[llvm-dev] [RFC] Making -mcpu=generic the default for ARM armv7a and arm8a rather than -mcpu=cortex-a8 or -mcpu=cortex-a53

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Wed May 31 15:13:29 PDT 2017


On Wed, May 31, 2017 at 10:23:14AM -0500, Evandro Menezes via llvm-dev wrote:
> On 05/31/2017 08:35 AM, Renato Golin wrote:
> > On 31 May 2017 at 13:57, Kristof Beyls <Kristof.Beyls at arm.com> wrote:
> > > Taking into account the above measurements, my conclusions are:
> > > 1. We should make -mcpu=generic the default cpu, not Cortex-A8 or Cortex-A53
> > > for march=armv7a and march=armv8a.
> > Using -mcpu=native makes more sense to me, if at all possible to
> > detect, falling back to generic, which doesn't hurt.
> 
> For the sake of predictability, methinks that it'd make more sense for the
> default to always mean the same thing for everyone, as Kristof suggested.

I fully agree. Non-predictable builds are a major PITA for debugging.

Joerg


More information about the llvm-dev mailing list