OSDN Git Service

Refactor some methods to look through bitcasts and GEPs on pointers into
authorChandler Carruth <chandlerc@gmail.com>
Sat, 10 Mar 2012 08:39:09 +0000 (08:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 10 Mar 2012 08:39:09 +0000 (08:39 +0000)
commit84dfc32ff906271c373819595e60a173624e1184
tree0c403b25ac3430940d7e009bf0ee9b307d2e298b
parente060eb8916820fb7a2035dd14c848aa1fd545efe
Refactor some methods to look through bitcasts and GEPs on pointers into
a common collection of methods on Value, and share their implementation.
We had two variations in two different places already, and I need the
third variation for inline cost estimation.

Reviewed by Duncan Sands on IRC, but further comments here welcome.

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