[LLVMdev] phi instuction example
Adam Treat
adam.treat at samsung.com
Fri Apr 18 10:51:59 PDT 2014
How did you terminate the phi instruction? Unconditional branch
somewhere else? I had the same problem recently and discovered I was
missing a terminate instruction...
On 04/18/2014 01:09 PM, lionheart8470 at gmail.com wrote:
> Hello. I'm a newbie for LLVM.
>
> What I'm trying to do is to write the simplest program containing phi IR.
> However, even though I wrote and if statements, what I get is LLVM IR not containing phi node. I tried the examples shown in LLVM documentation but it didn't work.
>
> At first, I thought it is because of the optimization level but without optimization, it doesn't produce phi, and when using optimization level higher and equal to O1, the meaningless while loops are just removed, so I have a problem.
>
> I think it is easy problem but, for some reasons that I don't know, I failed making one.
>
> Can any give me simplest program producing phi?
>
> Thanks.
> _______________________________________________
> 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