summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-11 03:57:30 +0000
committerChris Lattner <sabre@nondot.org>2004-10-11 03:57:30 +0000
commitb2b7f90cafe73f29e933fc21d7fe96919d6084e7 (patch)
tree24245fc814fb14b29ac89897010f2054b1bdcd8c /llvm/lib/Analysis
parent8c8cbb8b719e66c9f887ac27c3b48fd0fc7b61c8 (diff)
downloadbcm5719-llvm-b2b7f90cafe73f29e933fc21d7fe96919d6084e7.tar.gz
bcm5719-llvm-b2b7f90cafe73f29e933fc21d7fe96919d6084e7.zip
If we are trying to create a ConstantExpr cast that is really a GEP to the
first element of an array, return a GEP instead of a cast. This allows us to transparently fold this: int* getelementptr (int* cast ([100 x int]* %Gbody to int*), int 40) into this: int* getelementptr ([100 x int]* %Gbody, int 0, int 40) llvm-svn: 16911
Diffstat (limited to 'llvm/lib/Analysis')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud