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

Mark Kettenis via llvm-dev llvm-dev at lists.llvm.org
Wed May 31 15:45:41 PDT 2017


> Date: Wed, 31 May 2017 10:23:14 -0500
> From: Evandro Menezes via llvm-dev <llvm-dev at lists.llvm.org>
> 
> 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.

Seconded.  Predictable builds are pretty important for us on OpenBSD,
as people regularly do their own (native) builds of the complete OS on
different kinds of hardware.


More information about the llvm-dev mailing list