<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>I mean to say didnt help. :) <br><br><hr id="zwchr"><b>From: </b>nizam@cse.iitm.ac.in<br><b>To: </b>"Benjamin Kramer" <benny.kra@gmail.com><br><b>Cc: </b>"llvmdev" <llvmdev@cs.uiuc.edu><br><b>Sent: </b>Saturday, February 1, 2014 9:53:55 PM<br><b>Subject: </b>Re: [LLVMdev] Eliminate SSA Virtual registers<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: #000000"><br><font size="3">Hi Ben,</font><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">That did help. I continue to notice the virtual register in the program. I use LLVM 3.4. The program i am looking at is a very simple one. Listed below</div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div><div>int global_var;</div><div>int *global_ptr;</div><div><br></div><div>int32_t main(int32_t argc, char ** argv){</div><div> int p = 10;</div><div> int k = 20;</div><div> int *pp;</div><div> char *c_pp;</div><div><br></div><div> pp = &k;</div><div> global_ptr = pp;</div><div> pp = &p;</div><div> global_ptr = &global_var;</div><div> return 0;</div><div>}</div></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;">BR/Nizam</div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: 12pt;"><br><hr id="zwchr"><b>From: </b>"Benjamin Kramer" <benny.kra@gmail.com><br><b>To: </b>nizam@cse.iitm.ac.in<br><b>Cc: </b>"llvmdev" <llvmdev@cs.uiuc.edu><br><b>Sent: </b>Saturday, February 1, 2014 9:57:00 PM<br><b>Subject: </b>Re: [LLVMdev] Eliminate SSA Virtual registers<br><br><br>On 01.02.2014, at 16:47, nizam@cse.iitm.ac.in wrote:<br><br>> Hi,<br>> <br>> is there a opt pass that replaces the SSA virtual registers to stack-variables? I want to eliminate the SSA virtual register from my IR. Kindly suggest <br><br>Try the register to memory demotion pass. opt -reg2mem<br><br>- Ben<br><br></div></div><br>_______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu<br>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<br></div></body></html>