aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolution.cpp
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
commitf8d1097e9d69c65642d008926065317db583961a (patch)
tree68c0a1fc8cc6f846c3f0989866017a8e06ac63a2 /lib/Analysis/ScalarEvolution.cpp
parent5e94a21907a528e18e2ce88d7bf286f2bfa333ce (diff)
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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
0 files changed, 0 insertions, 0 deletions