emit after gvn pass?

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.

Thanks in advance,
-nonpoly

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

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.

With llvm-gcc you can pass
   -mllvm -print-after=gvn
on the command line.

Ciao,

Duncan.