[PATCH] D143409: [SCEV][IndVarSimplify] Add nsw/nuw falgs to binary ops before visiting IVUsers

Aleksandr Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 04:36:24 PST 2023


aleksandr.popov added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyIndVar.cpp:894
+        pushIVUsers(IVOperand, L, Simplified, SimpleIVUsers);
+
   while (!SimpleIVUsers.empty()) {
----------------
mkazantsev wrote:
> This solves problem for users of initial IV, but seems that it still exists for users of users. Can we do it for all values?
I'll add test for the case with users of users, thanks


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143409/new/

https://reviews.llvm.org/D143409



More information about the llvm-commits mailing list