[LLVMdev] Localizing Globals ?

Sanjiv Gupta sanjiv.gupta at microchip.com
Tue Jun 16 23:45:02 PDT 2009


>> But then such an optimization may fail the entire idea of user wanting to
>> place a variable into different memory space. The original idea of user
>> might be to save on the stack space (data memory) and hence he asked the
>> variable to be placed into different memory space (program memory). So the
>> best bet here is to deny this optimization by checking
>>
>> GV->getType()->getAddressSpace() == 0.
>>     
>
> Yeah, that sounds good; mind putting together a patch?
>
> -Eli
>
>   
Checked in.
> _______________________________________________
> 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