forked from OSchip/llvm-project
[TableGen] Remove unnecessary map lookup and shadowing of a variable. NFCI
We already have an OldSCIdx variable in the outer loop here. And we already did the map lookup in the loop that populated ClassInstrs. And the outer OldSCIdx got it from ClassInstrs. llvm-svn: 328139
This commit is contained in:
parent
9fbbe5d9ca
commit
f2ab05c432
|
@ -805,7 +805,6 @@ void CodeGenSchedModels::createInstRWClass(Record *InstRWDef) {
|
|||
Record *RWModelDef = InstRWDef->getValueAsDef("SchedModel");
|
||||
SmallSet<unsigned, 4> RemappedClassIDs;
|
||||
for (Record *InstDef : InstDefs) {
|
||||
unsigned OldSCIdx = InstrClassMap[InstDef];
|
||||
if (OldSCIdx && RemappedClassIDs.insert(OldSCIdx).second) {
|
||||
for (Record *OldRWDef : SchedClasses[OldSCIdx].InstRWs) {
|
||||
if (OldRWDef->getValueAsDef("SchedModel") == RWModelDef) {
|
||||
|
|
Loading…
Reference in New Issue