Now that ShrinkDemandedOps() is separated out from DAG combine. It sometimes leave...
authorEvan Cheng <evan.cheng@apple.com>
Wed, 10 Feb 2010 02:17:34 +0000 (02:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 10 Feb 2010 02:17:34 +0000 (02:17 +0000)
commit046632f272b22a653c204c0ef56eb4076368d4bb
tree3a5a7bc876be00a2593850f5fced7031fa9643d4
parent37145b6e4ce1984b54d7fb79116d57e203437136
Now that ShrinkDemandedOps() is separated out from DAG combine. It sometimes leave some obvious nops which dag combine used to clean up afterwards e.g. (trunk (ext n)) -> n. Look for them and squash them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95757 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/zext-trunc.ll [new file with mode: 0644]