Fold (sext (truncate x)) more aggressively, by avoiding creation of a
authorChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 03:13:59 +0000 (03:13 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Feb 2007 03:13:59 +0000 (03:13 +0000)
commit2255887574250bb0bc577fcfc0c65b3f617e8c3c
tree400842db95d7fed114a01be670dbc8192000b471
parentddf53e45b29087c57e0c864c93f86d5e99182d55
Fold (sext (truncate x)) more aggressively, by avoiding creation of a
sextinreg if not needed.   This is useful in two cases: before legalize,
it avoids creating a sextinreg that will be trivially removed.  After legalize
if the target doesn't support sextinreg, the trunc/sext would not have been
removed before.

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