[PATCH] D12905: [SCEV][LV] Introduce SCEV Predicates and use them to re-implement stride versioning

silviu.baranga@arm.com via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 02:53:26 PDT 2015


sbaranga added inline comments.

================
Comment at: include/llvm/Analysis/ScalarEvolution.h:201-202
@@ +200,4 @@
+  /// SCEVEqualPredicate - This class represents an assumption that two SCEV
+  /// expressions are equal, and this can be checked at run-time. We assume#
+  /// that the right hand side is a SCEVUnknown.
+  ///
----------------
mzolotukhin wrote:
> s/assume#/assume/
> 
> By the way, why is the assumption (that RHS is SCEVUnknown) needed?
The assumption is not technically required. But if we wanted to have something general here we would have to change the visiting algorithm to test if this predicate matches on every sub-expression. This is technically easy to do, but we don't need it for the current uses (and we would just spend more time doing these checks).


http://reviews.llvm.org/D12905





More information about the llvm-commits mailing list