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 -- View this message in context: http://old.nabble.com/emit-after-gvn-pass--tp28462901p28462901.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
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
> 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.