summaryrefslogtreecommitdiff
path: root/utils/TableGen/SubtargetEmitter.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-07-02 18:10:42 +0000
committerAndrew Trick <atrick@apple.com>2012-07-02 18:10:42 +0000
commit218ee74a011c0d350099c452810da0bd57a15047 (patch)
tree58e25d935c68661cd1654a02633e20c3a5c2ea56 /utils/TableGen/SubtargetEmitter.cpp
parent7c3a65c7edceb3a013cf49d376c3bc016eb871bf (diff)
downloadllvm-218ee74a011c0d350099c452810da0bd57a15047.tar.gz
llvm-218ee74a011c0d350099c452810da0bd57a15047.tar.bz2
llvm-218ee74a011c0d350099c452810da0bd57a15047.tar.xz
Reapply "Make NumMicroOps a variable in the subtarget's instruction itinerary."
Reapplies r159406 with minor cleanup. The regressions appear to have been spurious. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/SubtargetEmitter.cpp')
-rw-r--r--utils/TableGen/SubtargetEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp
index 59464d2940..adfd416fc0 100644
--- a/utils/TableGen/SubtargetEmitter.cpp
+++ b/utils/TableGen/SubtargetEmitter.cpp
@@ -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 = ItinClassList[Find]->getValueAsInt("NumMicroOps");
+ unsigned NumUOps = ItinData->getValueAsInt("NumMicroOps");
InstrItinerary Intinerary = { NumUOps, FindStage, FindStage + NStages,
FindOperandCycle,
FindOperandCycle + NOperandCycles};