Displaying 2 results from an estimated 2 matches for "r70820".
Did you mean:
070820
2009 Apr 27
1
[LLVMdev] Strange loop unrolling problem (partially solved)
A short while ago I wrote about the strange loop unrolling
behavior we encountered. The problem was that with -O3,
the following loop does not get unrolled if the ifdef'ed
dead code is not present.
------------------------------------
extern volatile int v1;
int unroll() {
int i;
int v2 = 0;
for(i = 0; i < 3; i++) {
if (i == v2) { v1 = 1000;
} else { v1 = 1001;
}
2009 Apr 22
4
[LLVMdev] Strange loop unrolling problem
I am having a strange problem with loop unrolling. Attached is
a small example that demonstrates what happens.
There is a for-loop with a known trip count, and some control
flow inside the loop. If the condition of the control flow only
depends on the loop index and loop invariant variables, the loop
is not unrolled. However, if the condition involves potentially
loop variant variables, the loop