[PATCH] D81881: [OPENMP]Fix overflow during counting the number of iterations.

2020-06-16 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. This revision is now accepted and ready to land. In D81881#2095509 , @ABataev wrote: > In D81881#2094062 , @jdoerfert wrote: > > > So the idea is to do th

[PATCH] D81881: [OPENMP]Fix overflow during counting the number of iterations.

2020-06-16 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. In D81881#2094062 , @jdoerfert wrote: > So the idea is to do the trip count computation with defined overflow > behavior, e.g., without `nsw/nuw` in IR, right? Not quite. If we can predict that there is no overflow, everything r

[PATCH] D81881: [OPENMP]Fix overflow during counting the number of iterations.

2020-06-15 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. So the idea is to do the trip count computation with defined overflow behavior, e.g., without `nsw/nuw` in IR, right? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D81881/new/ https://reviews.llvm.org/D81881 __