This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/19210] [4.0 Regression] not using do-loop for some loops


------- Additional Comments From giovannibajo at libero dot it  2004-12-31 00:49 -------
Zdenek, I have troubles understanding how such a loop can ever be infinite:

- if wrapv, sooner or later K will reach any N (and thus, surely it will become 
less or equal to any given N).
- if nowrapv, my understanding is that all bets are off: if f() is called with 
N<=3 the loop will terminate, otherwise it's undefined behaviour. In such a 
situation, we can still perform doloop because it's not going to screw the 
program any more than it is already.

What am I missing?

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19210


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]