Displaying 1 result from an estimated 1 matches for "unrollingpreferecnes".
2015 Feb 04
2
[LLVMdev] Is this a bug with loop unrolling and TargetTransformInfo ?
...esult of setting
Count to UINT_MAX, this loop would be unrolled 15 times:
if (b + 4 > a) {
for (int i = 0; i < 4; i++, b++) {
if (b + 1 <= a)
*(dst + c + b) = 0;
else
break;
}
}
Is this the expected behavior? Is the loop unroll pass supposed to use the
value of UnrollingPreferecnes::Count even if it is clearly wrong?
I have an LLVM IR test case for this issue attached to this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150202/257276.html
-Tom