add a simple instcombine xform, simplify another one to use hasAllZeroIndices()
authorChris Lattner <sabre@nondot.org>
Fri, 1 Jan 2010 23:09:08 +0000 (23:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Jan 2010 23:09:08 +0000 (23:09 +0000)
commitec12d050197781d2a0a57097baa464763d3f696c
treeffbe7c3aeb477bcedced7150097d85d7ba6c5500
parent85c1c964dc5b73085f2b2dce1cfc171fa9b765e2
add a simple instcombine xform, simplify another one to use hasAllZeroIndices()
instead of hand rolling a loop.

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