Move getStrideFromPointer and friends from LoopVectorize to VectorUtils
authorHal Finkel <hfinkel@anl.gov>
Sat, 11 Jul 2015 10:52:42 +0000 (10:52 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 11 Jul 2015 10:52:42 +0000 (10:52 +0000)
commit4e947d81119638c7beafe8ff5b776f4c5ce848b1
tree55a9f89662664d93d4ebebadf34adce5c4e1c1c2
parent6690dbffe0298cb7260fb9caf26743bd56d3c7e8
Move getStrideFromPointer and friends from LoopVectorize to VectorUtils

The following functions are moved from the LoopVectorizer to VectorUtils:

  - getGEPInductionOperand
  - stripGetElementPtr
  - getUniqueCastUse
  - getStrideFromPointer

These used to be static functions in LoopVectorize, but will also be used by
the upcoming loop versioning LICM transformation.

Patch by Ashutosh Nema!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241980 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/VectorUtils.h
lib/Analysis/VectorUtils.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp