Displaying 2 results from an estimated 2 matches for "inc26".
Did you mean:
inc16
2012 Jan 18
2
[LLVMdev] getSmallConstantTripCount function doesn't work for obvious cases
Hi,
My pass heavily relies on llvm::Loop's getSmallConstantTripCount method.
However, I found that it doesn't work for some simple cases.
In the following example, I can get the constant trip count of the
outermost loop if statement "a[l] = a[l] + 1" is there. After commenting
out this line, the returned constant trip count for that loop is 0. In my
pass, I traverse the nested
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...i32 0, i32 0), i32* %val)
%22 = load i32* %val, align 4
%call24 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x
i8]* @.str5, i32 0, i32 0), i32 %22)
br label %for.inc25
for.inc25: ; preds = %for.body22
%23 = load i32* %i17, align 4
%inc26 = add nsw i32 %23, 1
store i32 %inc26, i32* %i17, align 4
br label %for.cond18
for.end27: ; preds = %for.cond18
%call28 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([2 x
i8]* @.str9, i32 0, i32 0))
%24 = load %struct._IO_FILE** %rfile, a...