This is the mail archive of the gcc-help@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] | |
Chris Thiel wroteThe optimizer is always allowed to know the behaviors that result in THIS compiler from undefined behavior. If the optimizer can predict the run time answer with complete certainty, it can use that answer.Is there a reason that the equality and inequality expressions (and only
those expressions) are simplified? I understand that signed integer
overflow is undefined.
I'm more than a little mystified by this question. Unless the target is using something truly weird like saturating arithmetic we can always guarantee that a+1 != a, but we cannot guarantee that a+1 > a.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |