enhance CanEvaluateZExtd to handle shift left and sext, allowing
authorChris Lattner <sabre@nondot.org>
Sun, 10 Jan 2010 02:22:12 +0000 (02:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 10 Jan 2010 02:22:12 +0000 (02:22 +0000)
commitd26c9e183e56d09f48d7074be4cacce099338316
treeb46bcf64ab43a254e8a455e9c8b09eb570cf5951
parent3f7dc880c4b558655cb8868ce29e1d2b27e2ea51
enhance CanEvaluateZExtd to handle shift left and sext, allowing
more expressions to be promoted and casts eliminated.

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