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)
commit9c26462a27f079bf0fba7aff514716a0141a341f
tree2ba8047e132a321ac0d8cf1d1e09339a6e3c852f
parent351db05308f4f7810f6604698e2ed94cecca1578
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)

llvm-svn: 226805
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/i1narrowfail.ll [new file with mode: 0644]