[PATCH] getStrideFromPointer and its helper function from LoopVectorize moved to VectorUtils

Ashutosh Nema ashutosh.nema at amd.com
Tue Jun 30 02:07:58 PDT 2015


Hi chatur01, dblaikie, reames,

In this change, moved following function from LoopVectorizer to VectorUtils:

    a) getGEPInductionOperand
    b) stripGetElementPtr
    c) getUniqueCastUse
    d) getStrideFromPointer

These functions are common between loop vectorizer & upcoming loop versioning for LICM.
Earlier these functions are defined as static functions in LoopVectorize.cpp

For re-usability its good to keep them as utility.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10835

Files:
  include/llvm/Analysis/VectorUtils.h
  lib/Analysis/VectorUtils.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10835.28760.patch
Type: text/x-patch
Size: 12393 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150630/c3611cea/attachment.bin>


More information about the llvm-commits mailing list