diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-29 07:10:41 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-29 07:10:41 +0000 |
commit | 3e4b3b9043b1ced24e07d8d1174feeee06c6912e (patch) | |
tree | f31c2d3c63fc1da8b3b598c433759ae8391e62ed /lib/CodeGen/TargetInstrInfoImpl.cpp | |
parent | 94e3b388e561ce980c861e092bf378bf40202268 (diff) |
Revert "Make NumMicroOps a variable in the subtarget's instruction itinerary."
This reverts commit r159406. I noticed a performance regression so I'll back out for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
-rw-r--r-- | lib/CodeGen/TargetInstrInfoImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/TargetInstrInfoImpl.cpp b/lib/CodeGen/TargetInstrInfoImpl.cpp index 54be88a8bb..7af08f591f 100644 --- a/lib/CodeGen/TargetInstrInfoImpl.cpp +++ b/lib/CodeGen/TargetInstrInfoImpl.cpp @@ -560,8 +560,8 @@ TargetInstrInfoImpl::getNumMicroOps(const InstrItineraryData *ItinData, return 1; unsigned Class = MI->getDesc().getSchedClass(); - int UOps = ItinData->Itineraries[Class].NumMicroOps; - if (UOps >= 0) + unsigned UOps = ItinData->Itineraries[Class].NumMicroOps; + if (UOps) return UOps; // The # of u-ops is dynamically determined. The specific target should |