[flang-commits] [flang] [flang][CodeGen] add nsw to address calculations (PR #74709)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Thu Dec 7 09:48:39 PST 2023
vzakhari wrote:
Thank you for the changes, Tom. It looks good to me. I just want to clarify that this is not the place that I talked about in the RFC. I was talking about setting `nsw` on the do-variable increment that is generated by the loop lowering. Adding `nsw` there is what enables the hoisting I mentioned in the RFC - in this case, the `nsw`s on the address computations might be not that important, because LLVM was able to optimize without them.
https://github.com/llvm/llvm-project/pull/74709
More information about the flang-commits
mailing list