[LLVMdev] emit after gvn pass?
David Greene
dag at cray.com
Wed May 5 12:36:41 PDT 2010
On Wednesday 05 May 2010 12:00:18 nonpoly wrote:
> Hello again,
> Just wondering if there is a flag I can pass when compiling with
> llvm-gcc that can emit the llvm IR after the gvn pass (want to see the IR
> after dead code elimination/redundancy elimination). If so, will other
> passes be performed as well? I really just want to see the IR after the
> eliminations only, if it is at all possible.
I don't know if the options are linked into llvm-gcc but with opt
you can do "-debug -print-after=gvn." You'll get a lot more output
than just the IR but it will be there.
-Dave
More information about the llvm-dev
mailing list