Rewrite cast->cast elimination code completely based on the information we
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2004 00:59:32 +0000 (00:59 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jul 2004 00:59:32 +0000 (00:59 +0000)
commitbee7e7644b05279d0a5aaa4e226a762b37c9e7ae
treec9f4fa7e0e4d70d4eb766fdf1b3003c3cc936d7d
parent6c08892814d25108c39b96f78e464842f048f9d7
Rewrite cast->cast elimination code completely based on the information we
actually care about.  Someday when the cast instruction is gone, we can do
better here, but this will do for now.  This implements
instcombine/cast.ll:test17/18 as well.

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