Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane

From: Tobias Grosser <tobias <at> grosser.es>
Subject: Re: Reproducing clang -O3 with opt
Newsgroups: gmane.comp.compilers.llvm.devel
Date: Wednesday 3rd December 2014 08:37:54 UTC (over 4 years ago)
On 03.12.2014 09:19, Adam Nemet wrote:
> This is probably a trivial question but the way I used to do this turns
out to be flawed.
>
> I used run clang with -O0 -emit-llvm and then use the resulting IR with
opt -O3.  The problem is that clang at -O0 does not generate TBAA metadata
so the passes run by opt behave differently.
>
> What’s the recommended way of doing this?

I normally run 'clang -O3 -mllvm -disable-llvm-optzns' followed by 'opt 
-O3'.

Tobias
_______________________________________________
LLVM Developers mailing list
[email protected]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
 
CD: 12ms