OSDN Git Service

Fixed a bug in type legalizer for masked gather.
authorIgor Breger <igor.breger@intel.com>
Mon, 29 Aug 2016 09:12:31 +0000 (09:12 +0000)
committerIgor Breger <igor.breger@intel.com>
Mon, 29 Aug 2016 09:12:31 +0000 (09:12 +0000)
commit922af1cb46bb89a7bdbf68dfe77b15d1347441d7
tree420e8706b6fd079cbabcc7bcceac1f3951598124
parent84cb7f4d145834edd50487b7f261b2f0b0f114b9
Fixed a bug in type legalizer for masked gather.
The problem occurs when the Node doesn't updated in place , UpdateNodeOperation() return the node that already exist.
In this case assert fail in PromoteIntegerOperand() , N have 2 results ( val + chain).

Differential Revision: http://reviews.llvm.org/D23756

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279961 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/masked_gather_scatter.ll