[flang-commits] [flang] [flang][CodeGen] add nsw to address calculations (PR #74709)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri Dec 8 09:43:05 PST 2023


klausler wrote:

What do you mean by "honor do loop overflow"?

Integer overflow makes a program non-conformant.  The language doesn't give any guarantees about the result.  But existing code that depends on overflow & underflow canceling out is out there; for example, computing ((N+1)-1) and expecting N.

https://github.com/llvm/llvm-project/pull/74709


More information about the flang-commits mailing list