Fixed a bug in narrowing store operation.
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 22 Jan 2015 09:39:08 +0000 (09:39 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 22 Jan 2015 09:39:08 +0000 (09:39 +0000)
commitcdce03426d357164c1d15154e251d22e02cc8bc1
tree0689e404327651b6932766d8ec7f968326606ef5
parentb51b170ce4edfe4240a2222e4a7694a5aa15b723
Fixed a bug in narrowing store operation.
Type MVT::i1 became legal in KNL, but store operation can't be narrowed to this type,
since the size of VT (1 bit) is not equal to its actual store size(8 bits).

Added a test provided by David (dag@cray.com)

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