mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Reserve number of MI operands to accom,odate complex patterns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98a27acc6b
commit
aa7b3df178
@ -100,8 +100,11 @@ void PseudoLoweringEmitter::evaluateExpansion(Record *Rec) {
|
|||||||
throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() +
|
throw TGError(Rec->getLoc(), "Pseudo result '" + Operator->getName() +
|
||||||
"' operand count mismatch");
|
"' operand count mismatch");
|
||||||
|
|
||||||
|
unsigned NumMIOperands = 0;
|
||||||
|
for (unsigned i = 0, e = Insn.Operands.size(); i != e; ++i)
|
||||||
|
NumMIOperands += Insn.Operands[i].MINumOperands;
|
||||||
IndexedMap<OpData> OperandMap;
|
IndexedMap<OpData> OperandMap;
|
||||||
OperandMap.grow(Insn.Operands.size());
|
OperandMap.grow(NumMIOperands);
|
||||||
|
|
||||||
addDagOperandMapping(Rec, Dag, Insn, OperandMap, 0);
|
addDagOperandMapping(Rec, Dag, Insn, OperandMap, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user