mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Bug fix wrt chain operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9a5ef524a
commit
1cf6db2d3b
@ -1902,6 +1902,10 @@ public:
|
||||
<< ".getValue(" << CInfo.getNumResults() << "))) goto P"
|
||||
<< PatternNo << "Fail; // Already selected for a chain use?\n";
|
||||
}
|
||||
if (!FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
}
|
||||
}
|
||||
|
||||
for (unsigned i = 0, e = N->getNumChildren(); i != e; ++i, ++OpNo) {
|
||||
@ -1975,13 +1979,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (HasChain) {
|
||||
if (!FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If there is a node predicate for this, emit the call.
|
||||
if (!N->getPredicateFn().empty())
|
||||
OS << " if (!" << N->getPredicateFn() << "(" << RootName
|
||||
|
Loading…
Reference in New Issue
Block a user