|
|
|
|
|
by hramrach
1615 days ago
|
|
I don't understand. If you can turn the loop from upward to downward then you do have a bound for it, and then you can tell if it overflows or not. Also why is signed overflow a problem and not unsigned? Surely you want unsigned loop optimized also? |
|
Typically not a problem for i=0...n loops but eg `for (i=0;i<n;i+=2)` could overflow.