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 loop init, the loops have SSA
names for variables. Based on the analysis I do on the loop, I get a
TREE_NODE for the variable 'a', and two integer_one_node s.
I have trouble constructing the gimple_call_statement and adding it
before the loop_body. I am running into 'expected ssa_name have
var_decl' error. I am not sure I can use make_ssa_name for the
TREE_NODE of variable 'a' since I am yet to build a gimple_stmt that
will contain this variable.

How could I insert a call statement after a loop analysis ?

Thanks,
Aravinda

Reply via email to