unify the code that determines whether it is a good idea to change the type
authorChris Lattner <sabre@nondot.org>
Tue, 10 Nov 2009 07:23:37 +0000 (07:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 10 Nov 2009 07:23:37 +0000 (07:23 +0000)
commitc22d4d1500cfbcf89d6dfc14ce4c2d0084c06096
tree5cc877e8717d2f762cafe6dba322b29aa6d20b24
parent7cef1781761cff766320e3e904542ad02466d735
unify the code that determines whether it is a good idea to change the type
of a computation.  This fixes some infinite loops when dealing with TD that
has no native types.

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