now that the cost model has changed, we can always consider
authorChris Lattner <sabre@nondot.org>
Sun, 10 Jan 2010 07:40:50 +0000 (07:40 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Jan 2010 07:40:50 +0000 (07:40 +0000)
commitdde5ee5d37d05c326d33497e1dbd16f77191a1ae
treeac2a5ce8f9abe8d76c346ff77d8755071bc08d60
parent24e64df7ec25b55aa872c2ef33728dfbb8c353c4
now that the cost model has changed, we can always consider
elimination of a sign extend to be a win, which simplifies
the client of CanEvaluateSExtd, and allows us to eliminate
more casts (examples taken from real code).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93109 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp
test/Transforms/InstCombine/cast.ll