OSDN Git Service

Implement folding of GEP's like:
authorChris Lattner <sabre@nondot.org>
Fri, 7 May 2004 22:09:22 +0000 (22:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 7 May 2004 22:09:22 +0000 (22:09 +0000)
commit620ce1466653cad650950215e7525d4ef3b41cd6
tree93fa9e1b976eab80230388c171e0f63b1eeef72a
parent7532e34537de56cc42512085abb77ad84c8a42a6
Implement folding of GEP's like:

        %tmp.0 = getelementptr [50 x sbyte]* %ar, uint 0, int 5         ; <sbyte*> [#uses=2]
        %tmp.7 = getelementptr sbyte* %tmp.0, int 8             ; <sbyte*> [#uses=1]

together.  This patch actually allows us to simplify and generalize the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13415 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp