code simplification, no functionality change.

llvm-svn: 55363
This commit is contained in:
Chris Lattner 2008-08-26 07:01:28 +00:00
parent 6962f5a73b
commit 491a930ea3
1 changed files with 1 additions and 11 deletions

View File

@ -1653,17 +1653,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
for (unsigned i = 0, e = PatternsOfOp.size(); i != e; ++i) {
const PatternToMatch *Pat = PatternsOfOp[i];
TreePatternNode *SrcPat = Pat->getSrcPattern();
MVT::SimpleValueType VT = SrcPat->getTypeNum(0);
std::map<MVT::SimpleValueType,
std::vector<const PatternToMatch*> >::iterator TI =
PatternsByType.find(VT);
if (TI != PatternsByType.end())
TI->second.push_back(Pat);
else {
std::vector<const PatternToMatch*> PVec;
PVec.push_back(Pat);
PatternsByType.insert(std::make_pair(VT, PVec));
}
PatternsByType[SrcPat->getTypeNum(0)].push_back(Pat);
}
for (std::map<MVT::SimpleValueType,