Do not fold (zero_ext (sign_ext V)) -> (sign_ext V), they are not the same.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:51:15 +0000 (18:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:51:15 +0000 (18:51 +0000)
commit2f0ca79a7504a91b16156b199b6f07857f3782c6
tree580da16782bc6e1c10b58a16a8107f368705d26a
parenta0bb692b2702843fa4b60b271879d4b0102b8c91
Do not fold (zero_ext (sign_ext V)) -> (sign_ext V), they are not the same.

This fixes llvm-test/SingleSource/Regression/C/casts.c

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19519 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp