summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-06-29 07:10:41 +0000
committerAndrew Trick <atrick@apple.com>2012-06-29 07:10:41 +0000
commit51a8cf77b862a817c4fd9d1d7dd152c29632204a (patch)
tree58c39f672932d816d4c3b34bd8724d4c150d4efe /llvm/lib/CodeGen
parentf865ba0c0efbea946e50942bc60ba3e41bef921a (diff)
downloadbcm5719-llvm-51a8cf77b862a817c4fd9d1d7dd152c29632204a.tar.gz
bcm5719-llvm-51a8cf77b862a817c4fd9d1d7dd152c29632204a.zip
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. llvm-svn: 159411
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TargetInstrInfoImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp b/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
index 54be88a8bb0..7af08f591f1 100644
--- a/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud