Add a simple optimization to simplify the input to
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2007 06:35:54 +0000 (06:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2007 06:35:54 +0000 (06:35 +0000)
commit2b4c279a8e203fa8b13adf7ba3a5d4c8bef70df3
tree22ff6683e796ecc8eba8f949304a24e376528fa2
parentd1a23d573d5408be1cf52358fe03df0bfa07e16e
Add a simple optimization to simplify the input to
truncate and truncstore instructions, based on the
knowledge that they don't demand the top bits.

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