[LLVMdev] Help needed on debugging llvm

Anitha Boyapati anitha.boyapati at gmail.com
Wed Nov 7 03:22:43 PST 2012


On 7 November 2012 15:29, Duncan Sands <baldrick at free.fr> wrote:

>
> That way the output should be exactly the same as the output dragonegg
> would
> normally run the LLVM optimizers on, e.g. GCC constant folding and other
> such
> optimizations which get turned on at -O2 will still have happened
> (dragonegg
> turns off almost all GCC optimizations by default, but turning everything
> off
> isn't practical).
>
> Running the output through "opt -O2" should then do the same optimizations
> as
> dragonegg would have done.  I say "should" because in my experience this
> isn't
> always true, though it is supposed to be true.
>

Ok.


>
> Next comes the codegen stage, which you can emulate using llc (or clang
> like
> you do below, but llc is more direct).  It isn't that easy finding out
> exactly
> what flags dragonegg passes to llc, so this might be a bit painful.
>

Yes. This is probably what I need now. Code Generation options used by
dragonegg vs clang (or llc as I referred to in last email).

Thanks for all the suggestions.


- Anitha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121107/e4bb7d76/attachment.html>


More information about the llvm-dev mailing list