[PATCH] Extend LoopVectorizationLegality::isConsecutivePtr to handle multiple level GEPs
hfinkel at anl.gov
hfinkel at anl.gov
Mon Jun 22 17:15:21 PDT 2015
REPOSITORY
rL LLVM
================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:1560
@@ +1559,3 @@
+ if (auto C =
+ dyn_cast_or_null<SCEVConstant>(PtrAddRec->getStepRecurrence(*SE))) {
+ int64_t StepVal = C->getValue()->getSExtValue();
----------------
Does this give you what you want if you have nested loops? You only want that part of the recurrence that refers to the inner loop, right?
http://reviews.llvm.org/D10281
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list