Remove the dead TD argument to CanEvaluateZExtd, and add a
authorChris Lattner <sabre@nondot.org>
Mon, 11 Jan 2010 03:32:00 +0000 (03:32 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Jan 2010 03:32:00 +0000 (03:32 +0000)
commit789162a30971c3071a6c9edff3bc32084410e9dc
tree2d07401153758a76c839496aea8928e2bfe14d72
parent8cf4f6f3ddd868116ea958870fa6f6a344028a60
Remove the dead TD argument to CanEvaluateZExtd, and add a
new BitsToClear result which allows us to start promoting
expressions that end with a lshr-by-constant.  This is
conservatively correct and better than what we had before
(see testcases) but still needs to be extended further.

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