[LLVMdev] where are my phi-nodes?

Maarten Faddegon M.Faddegon at student.tudelft.nl
Fri Sep 10 04:27:43 PDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100910/e9f65c23/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 143 bytes
Desc: test.c
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100910/e9f65c23/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.ll
Type: application/octet-stream
Size: 2702 bytes
Desc: test.ll
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100910/e9f65c23/attachment.obj>


More information about the llvm-dev mailing list