Enhance instcombine to reason more strongly about promoting computation
authorChris Lattner <sabre@nondot.org>
Thu, 7 Jan 2010 23:41:00 +0000 (23:41 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Jan 2010 23:41:00 +0000 (23:41 +0000)
commit075f6929393de708fbebbba053d2562d05ff0ce0
tree73262694dc715d1b1738be15ce648554f8efb93b
parentbd1fccfad59f24267b6fa8b898711d63a3574c7d
Enhance instcombine to reason more strongly about promoting computation
that feeds into a zext, similar to the patch I did yesterday for sext.
There is a lot of room for extension beyond this patch.

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