If a GEP index simply advances by multiples of a type of zero size,
authorDuncan Sands <baldrick@free.fr>
Mon, 22 Nov 2010 16:32:50 +0000 (16:32 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 22 Nov 2010 16:32:50 +0000 (16:32 +0000)
commita63395a30f9227bde826749d3480046301b47332
tree98e2d9964feb8bea8b582060b45add77b35c6fa0
parentd87e571e6240c3d7d18b0a5f823a9c622c16c0aa
If a GEP index simply advances by multiples of a type of zero size,
then replace the index with zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119974 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
lib/Transforms/InstCombine/InstructionCombining.cpp
test/Transforms/InstCombine/2010-11-21-SizeZeroTypeGEP.ll