mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
fix two bugs in OPC_EmitRegister, which makes ppc happier.
llvm-svn: 96728
This commit is contained in:
parent
594803ba50
commit
8a969fb824
@ -525,11 +525,10 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
}
|
||||
|
||||
case OPC_EmitRegister: {
|
||||
unsigned RegNo = MatcherTable[MatcherIndex++];
|
||||
MVT::SimpleValueType VT =
|
||||
(MVT::SimpleValueType)MatcherTable[MatcherIndex++];
|
||||
SDValue Reg = CurDAG->getRegister(RegNo, VT);
|
||||
RecordedNodes.push_back(N);
|
||||
(MVT::SimpleValueType)MatcherTable[MatcherIndex++];
|
||||
unsigned RegNo = MatcherTable[MatcherIndex++];
|
||||
RecordedNodes.push_back(CurDAG->getRegister(RegNo, VT));
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -640,6 +639,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
SmallVector<EVT, 4> VTs;
|
||||
for (unsigned i = 0; i != NumVTs; ++i)
|
||||
VTs.push_back((MVT::SimpleValueType)MatcherTable[MatcherIndex++]);
|
||||
|
||||
// FIXME: Use faster version for the common 'one VT' case?
|
||||
SDVTList VTList = CurDAG->getVTList(VTs.data(), VTs.size());
|
||||
|
||||
// Get the operand list.
|
||||
|
Loading…
Reference in New Issue
Block a user