Revert "Make NumMicroOps a variable in the subtarget's instruction itinerary."
[oota-llvm.git] / utils / TableGen / SubtargetEmitter.cpp
index adfd416fc0c08cd8747718c08afdea4c58ffdfd7..59464d294056dcbc1fd3a87d21cd1735fc6a8d86 100644 (file)
@@ -498,7 +498,7 @@ void SubtargetEmitter::EmitStageAndOperandCycleData(raw_ostream &OS,
       unsigned Find = ItinClassesMap[Name];
 
       // Set up itinerary as location and location + stage count
-      unsigned NumUOps = ItinData->getValueAsInt("NumMicroOps");
+      unsigned NumUOps = ItinClassList[Find]->getValueAsInt("NumMicroOps");
       InstrItinerary Intinerary = { NumUOps, FindStage, FindStage + NStages,
                                     FindOperandCycle,
                                     FindOperandCycle + NOperandCycles};