Turn casts into getelementptr's when possible. This enables SROA to be more
authorChris Lattner <sabre@nondot.org>
Wed, 12 Apr 2006 18:09:35 +0000 (18:09 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Apr 2006 18:09:35 +0000 (18:09 +0000)
commit9fb921308375b519b742484fbed7407cbe62bfd6
tree88082b6842eb64d642db3540f41d25d2b2b8ec08
parent1c62195c989125bd51ee1b6e84b0a365a2fc4c0b
Turn casts into getelementptr's when possible.  This enables SROA to be more
aggressive in some cases where LLVMGCC 4 is inserting casts for no reason.

This implements InstCombine/cast.ll:test27/28.

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