[LLVMdev] where are my phi-nodes?

Maarten Faddegon
Fri, 10 Sep 2010 11:27:43 -0000

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>