This is the mail archive of the gcc@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] |
Hello,
Is it maybe possible in some cases to look at how the induction variable is used (e.g. as an array index and we know that it is undefined to have an index outside the array domain), and decide on whether the loop must be finite or not based on that?
we do this on tree level.
for (p=0, i=1; i<=n; i++) foo (*p++) ;
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |