mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
It is not an error if a rule does not match, it's just a failed match!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0abaaf49fd
commit
7b56ce409f
@ -1064,8 +1064,9 @@ void InstrSelectorEmitter::run(std::ostream &OS) {
|
||||
<< " return N->getCostFor(" << SlotName << "_Slot);\n\n"
|
||||
<< " unsigned Cost;\n"
|
||||
<< " switch (N->getNodeType()) {\n"
|
||||
<< " default: assert(0 && \"Unhandled node type for " << SlotName
|
||||
<< "!\");\n";
|
||||
<< " default: Cost = ~0U >> 1; // Match failed\n"
|
||||
<< " N->setPatternCostFor(" << SlotName << "_Slot, NoMatchPattern, Cost, NumSlots);\n"
|
||||
<< " break;\n";
|
||||
|
||||
for (PatternOrganizer::NodesForSlot::iterator J = I->second.begin(),
|
||||
E = I->second.end(); J != E; ++J)
|
||||
|
@ -1064,8 +1064,9 @@ void InstrSelectorEmitter::run(std::ostream &OS) {
|
||||
<< " return N->getCostFor(" << SlotName << "_Slot);\n\n"
|
||||
<< " unsigned Cost;\n"
|
||||
<< " switch (N->getNodeType()) {\n"
|
||||
<< " default: assert(0 && \"Unhandled node type for " << SlotName
|
||||
<< "!\");\n";
|
||||
<< " default: Cost = ~0U >> 1; // Match failed\n"
|
||||
<< " N->setPatternCostFor(" << SlotName << "_Slot, NoMatchPattern, Cost, NumSlots);\n"
|
||||
<< " break;\n";
|
||||
|
||||
for (PatternOrganizer::NodesForSlot::iterator J = I->second.begin(),
|
||||
E = I->second.end(); J != E; ++J)
|
||||
|
Loading…
x
Reference in New Issue
Block a user