mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Make sure to pass enough values to phi nodes when we are dealing with
decimated vectors. This fixes UnitTests/Vector/sumarray-dbl.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70c2a61e0a
commit
7e02151ce2
@ -2805,8 +2805,16 @@ void SelectionDAGISel::BuildSelectionDAG(SelectionDAG &DAG, BasicBlock *LLVMBB,
|
||||
|
||||
// Remember that this register needs to added to the machine PHI node as
|
||||
// the input for this MBB.
|
||||
unsigned NumElements =
|
||||
TLI.getNumElements(TLI.getValueType(PN->getType()));
|
||||
MVT::ValueType VT = TLI.getValueType(PN->getType());
|
||||
unsigned NumElements;
|
||||
if (VT != MVT::Vector)
|
||||
NumElements = TLI.getNumElements(VT);
|
||||
else {
|
||||
MVT::ValueType VT1,VT2;
|
||||
NumElements =
|
||||
TLI.getPackedTypeBreakdown(cast<PackedType>(PN->getType()),
|
||||
VT1, VT2);
|
||||
}
|
||||
for (unsigned i = 0, e = NumElements; i != e; ++i)
|
||||
PHINodesToUpdate.push_back(std::make_pair(MBBI++, Reg+i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user