[PATCH] D91126: [SCEV] Generalize no-self-wrap check in isLoopInvariantExitCondDuringFirstIterations

Artur Pilipenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 19:10:10 PST 2020


apilipenko accepted this revision.
apilipenko added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Analysis/ScalarEvolution.cpp:9589-9591
+  bool IsStepNonNegative = isKnownNonNegative(Step);
+  bool IsStepNonPositive = isKnownNonPositive(Step);
+  if (!IsStepNonNegative && !IsStepNonPositive)
----------------
Nit.  IsStepNonNegative local variable can be removed.


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

https://reviews.llvm.org/D91126



More information about the llvm-commits mailing list