Re-apply the change from r191393 with fix for pr17380.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 27 Sep 2013 11:37:05 +0000 (11:37 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 27 Sep 2013 11:37:05 +0000 (11:37 +0000)
commita9f113d0662faba063742d0ed82709c1f9087710
treeb8d6f41b5cc93a84924dfd8dcf1923eb82d0f378
parent9c0f5ed594367daeab784a82674fa3c14ee508d9
Re-apply the change from r191393 with fix for pr17380.

This change fixes the problem reported in pr17380 and re-add the dagcombine
transformation ensuring that the value types are always legal if the
transformation is triggered after Legalization took place.

Added the test case from pr17380.

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