I like to reuse following two functions:
a) getStrideFromPointer b) getGEPInductionOperand
Found these are defined as static in LoopVectorizer.
I made these as a general purpose utility function.
Declared "getStrideFromPointer" under llvm namespace in LoopUtils.h
Declared "getGEPInductionOperand" under llvm namespace in VectorUtils.h
Updated their definition accordingly.
Requesting to review this change.
Thanks,
Ashutosh