[LLVMdev] -Os

Renato Golin renato.golin at linaro.org
Tue Jul 23 06:32:06 PDT 2013

On 23 July 2013 12:34, reed kotler <rkotler at mips.com> wrote:

> How do I get these two paths to generate the same code?

Hi Reed,

First, make sure that it's really -Os that is generating the difference by
calling clang -v -Os, and explicitly calling all flags apart from -Os and
then compare the results. Try to mimic as many parameters in llc as
possible, with llc specific flags.

I've seen this happen when lowering to specific ARM cores and if I didn't
use the same relevant flags on both sides, the final code would be broken.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130723/30d25be0/attachment.html>

More information about the llvm-dev mailing list