Re: create_tmp_var() fail to create variable for loop with switch statement

2008-07-11 Thread Fern Moon
ow can I use the variable generated by create_iv API (ivvarincedloop) in my later printf statement? My pass code in the attachment in last email. Thank you. Fern On Fri, Jul 11, 2008 at 11:29 AM, Richard Guenther <[EMAIL PROTECTED]> wrote: > On Fri, Jul 11, 2008 at 5:23 PM, Fern Moon <

create_tmp_var() fail to create variable for loop with switch statement

2008-07-11 Thread Fern Moon
Dear sir, I write a pass to instrument loops to count runtime number of iterations. I insert a variable in each loop by create_tmp_var() and output the results by inserting a printf function at the exit edge of loop. The code is the attachment. The problem is that for the loops without switch sta

instrument function call failed

2008-07-06 Thread Fern Moon
Dear sir, I add a pass for the loop optimization. I try to add a function call but failed due to ssa error. In order to verify the error, I just add a simple function call such as time() without any parameter in the first basic block. I will get the error: hello1.c: In function main hello1.c:5: