teach the truncation optimization that an entire chain of
authorChris Lattner <sabre@nondot.org>
Fri, 27 Aug 2010 20:32:06 +0000 (20:32 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 27 Aug 2010 20:32:06 +0000 (20:32 +0000)
commitf9d05ab007d4764a78e820aecfcf8de179d178a7
tree4b52d50bad0f775cb0f752343f51638d09b6eb76
parente8ac3f3be4b4df619368bf46aa4ed91557b5f76e
teach the truncation optimization that an entire chain of
computation can be truncated if it is fed by a sext/zext that doesn't
have to be exactly equal to the truncation result type.

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