[LLVMdev] non-SSA IR generation

Sean Silva silvas at purdue.edu
Wed Jun 13 20:28:47 PDT 2012


Well, it *is* in SSA form, but it "cheats" by keeping values in memory.

--Sean Silva

On Wed, Jun 13, 2012 at 2:00 PM, Jiesheng Wei <jwei at ece.ubc.ca> wrote:

> Hi Amruth,
>
> If you do not specify any optimization flag for 'clang' and do not run
> 'opt -mem2reg' pass on the generated IR file, it is in non-SSA form.
> However, many variables stay in memory instead of registers in this case.
>
> Thanks,
> Jiesheng
>
> On Wed, Jun 13, 2012 at 1:17 PM, <amruth.rd at knights.ucf.edu> wrote:
>
>>  I am experimenting with LLVM optimizer and found that the bit code file
>> *clang* emits is already in SSA form, but I want to generate it in
>> non-SSA form. Would you let me know if there is any way of doing it?
>>
>> Cheera,
>> Amruth
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120613/8db91fc4/attachment.html>


More information about the llvm-dev mailing list