mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
TableGen for fast isel seems to assume an 'imm'
operand is the last in a pattern. There is no reason this should be true (although apparently it always is right now). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15002a2b52
commit
edc8774a73
@ -82,11 +82,11 @@ struct OperandsSignature {
|
|||||||
if (!Op->isLeaf()) {
|
if (!Op->isLeaf()) {
|
||||||
if (Op->getOperator()->getName() == "imm") {
|
if (Op->getOperator()->getName() == "imm") {
|
||||||
Operands.push_back("i");
|
Operands.push_back("i");
|
||||||
return true;
|
continue;
|
||||||
}
|
}
|
||||||
if (Op->getOperator()->getName() == "fpimm") {
|
if (Op->getOperator()->getName() == "fpimm") {
|
||||||
Operands.push_back("f");
|
Operands.push_back("f");
|
||||||
return true;
|
continue;
|
||||||
}
|
}
|
||||||
// For now, ignore other non-leaf nodes.
|
// For now, ignore other non-leaf nodes.
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user