Displaying 2 results from an estimated 2 matches for "b66724fc".
2011 Jun 19
0
[LLVMdev] Question about IndVarSimplify
On Sun, Jun 19, 2011 at 7:21 AM, Sorin Baltateanu
<baltateanu.sorin at gmail.com> wrote:
> Hi guys,
>
> I am trying to use the indvars pass, but i don't see any changes in the IL
> representation.
>
> For this simple function
>
> void init_array(int k)
> {
> int A[20];
> for (int i=2; i<10; i++)
> A[i] = 0;
> }
>
> i run
2011 Jun 19
3
[LLVMdev] Question about IndVarSimplify
Hi guys,
I am trying to use the indvars pass, but i don't see any changes in the IL
representation.
For this simple function
void init_array(int k)
{
int A[20];
for (int i=2; i<10; i++)
A[i] = 0;
}
i run *clang test-simple.c -S -emit-llvm -o test.il* and i obtain the
following il representation
define void @init_array(i32 %k) nounwind {
entry:
%k.addr = alloca i32,