mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
code simplification, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
073ff02e0d
commit
9783d62422
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user