diff options
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 535b71c..438669d 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -2861,23 +2861,6 @@ static const SCEV *getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *L V = S->getStepRecurrence(*SE); - // Strip off the size of access multiplication if we are still analyzing the - // pointer. - if (OrigPtr == Ptr) { - if (auto *M = dyn_cast<SCEVMulExpr>(V)) { - auto *StepConst = dyn_cast<SCEVConstant>(M->getOperand(0)); - if (!StepConst) - return nullptr; - - auto StepVal = StepConst->getAPInt().trySExtValue(); - // Bail out on a non-unit pointer access size. - if (!StepVal || StepVal != 1) - return nullptr; - - V = M->getOperand(1); - } - } - // Note that the restriction after this loop invariant check are only // profitability restrictions. if (!SE->isLoopInvariant(V, Lp)) |