On 24/07/2014 12:09, Roman Gareev wrote:
Any reason you don't make 'k' a function parameter?
Yes, ISL'll generate the following code, if 'k' a function parameter:
for (int c1 = 0; c1 <= 24; c1 += 1)
S_3(c1);
However, we could use -fno-ipa-cp to get the ISL AST, which contains
isl_ast_op_pdiv_r. What do you think about this?
I see. Just add a comment that we use globals to avoid ipa-cp.
Can you initialize res outside of the loop?
Yes, I've implemented this in the improved version.
Nice. Feel free to commit.
Tobias