Re: tree check: expected SSA_NAME, have var_decl

2009-12-28 Thread Justin Seyster
You can assign the "a" TREE_NODE to a temporary variable and call make_ssa_name on the temp, allowing you to use it as an argument to a GIMPLE_CALL. Here is the function I use for that purpose: /* Create a GIMPLE statement assigning a reference to a temporary variable, add that statement at th

tree check: expected SSA_NAME, have var_decl

2009-12-23 Thread Aravinda
Hi, After the tree-loop pass, I need to perform some analysis on the loop and insert a "gimple function call statement" before the loop body. The function call looks like, foo(a, 1, 1); for a loop that looks like, for (i = 0; i < 20; i ++) { a[i]++; } When compiled with -O2, after the tree