Hoist the GEP constant address offset computation to a common home on
authorChandler Carruth <chandlerc@gmail.com>
Tue, 11 Dec 2012 10:29:10 +0000 (10:29 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 11 Dec 2012 10:29:10 +0000 (10:29 +0000)
commit4ced4ee94b59a2b239a59a2ae5fd373579868f20
tree8c6d5c19405cf5c036c2d75bd35379cc6c1537bc
parent05749cff9b045505f08313b4c2d1bd9a4fb84970
Hoist the GEP constant address offset computation to a common home on
the GEP instruction class.

This is part of the continued refactoring and cleaning of the
infrastructure used by SROA. This particular operation is also done in
a few other places which I'll try to refactor to share this
implementation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169852 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/PtrUseVisitor.h
include/llvm/Instructions.h
lib/Analysis/PtrUseVisitor.cpp
lib/VMCore/Instructions.cpp