1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00

It is not an error if a rule does not match, it's just a failed match!

llvm-svn: 7761
This commit is contained in:
Chris Lattner 2003-08-11 22:30:51 +00:00
parent 18dffadc13
commit f75f0fe692

View File

@ -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)