This is an archive of the discontinued LLVM Phabricator instance.

Refactoring getStrideFromPointer & getGEPInductionOperand
AbandonedPublic

Authored by ashutosh.nema on Mar 24 2015, 11:37 PM.

Details

Reviewers
anemet
hfinkel
Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

ashutosh.nema retitled this revision from to Refactoring getStrideFromPointer & getGEPInductionOperand.
ashutosh.nema updated this object.
ashutosh.nema edited the test plan for this revision. (Show Details)
ashutosh.nema added reviewers: anemet, hfinkel, reames.
ashutosh.nema set the repository for this revision to rL LLVM.
ashutosh.nema added a subscriber: Unknown Object (MLST).
reames removed a reviewer: reames.May 5 2015, 3:14 PM
ashutosh.nema abandoned this revision.Jun 30 2015, 2:09 AM