[LLVMdev] where are my phi-nodes?

Pedro Ferreira pedro.ferreira at imgtec.com
Fri Sep 10 04:34:40 PDT 2010


They have been converted into stores. If you want PHI nodes to appear,
try running the "mem2reg" pass with "opt -mem2reg test.ll -S".

On Fri, 2010-09-10 at 13:27 +0200, Maarten Faddegon wrote:
> Hi,
> 
> I am interested in SSA and read llvm uses SSA in its ir. I decided to
> write a simple program and compile it with llvm to the human readable
> assembly language representation of the ir. I expected phi nodes all
> over the place. However, I could not find a single one! Could you tell
> my why that is so?
> 
> I compiled with "llvm-gcc -emit-llvm test.c -S -o test.ll". Attached
> to this message are the source and the resulting ll output.
> 
> Thanks in advance,
> 
>   Maarten Faddegon
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev






More information about the llvm-dev mailing list