[cfe-dev] using clang driver to generate executable for different subtargets

Pankaj Gode via cfe-dev cfe-dev at lists.llvm.org
Sat Jun 25 04:56:34 PDT 2016


 Thanks for clarifying.The example I was using is the SpecInt-2006 astar benchmark with rivers.cfg & rivers.bin file. 
As the loopmicroopbuffersize is 24 & 16 for m1 & kryo, so was expecting the effect on loop unroll pass, as this factor is considered as partial unrolling factor while unrolling.  
Thanks,Pankaj



    On Saturday, June 25, 2016 4:18 PM, Renato Golin <renato.golin at linaro.org> wrote:
 

 On 25 June 2016 at 10:50, Pankaj Gode via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> While using clang driver to create binary for aarch64 subtarget,
> do we need to give any other flag apart from '--target=aarch64-linux-gnu
> -mcpu=<> -mtune=<>' for using a AArch64's subtarget scheduling model?

Nope, that should be enough.


> I see same executable (in size & contents) generated for subtargets of
> aarch64 such as cortex-a57, exynos-m1 & kryo even after replacing the cpu
> names. Should I include some other flag ?

Both M1 and Kryo have different scheduling parameters, but not
radically so. It's possible that your code is not hitting any of those
differences.

Perhaps if you could provide an example of what the code is and how
you expected it to be in the assembly output (maybe comparing with
GCC's output), we'd know what is not being done.

cheers,
-renato


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160625/dcf5cd2d/attachment.html>


More information about the cfe-dev mailing list