Split the interesting bits of ConstantFoldLoadThroughGEPConstantExpr
authorChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2012 05:43:50 +0000 (05:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 24 Jan 2012 05:43:50 +0000 (05:43 +0000)
commita97ddd0cffb9a9eb1313343fd49097c9057a5850
treed3bdb82a31a3ac813e223c5b9c82be7c9531ff9d
parentff2b7f3cd66793e36a36500acb36b9d1a0489d4c
Split the interesting bits of ConstantFoldLoadThroughGEPConstantExpr
out into a new ConstantFoldLoadThroughGEPIndices (more useful) function
and rewrite it to be simpler, more efficient, and to handle the new
ConstantDataSequential type.

Enhance ConstantFoldLoadFromConstPtr to handle ConstantDataSequential.

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