diff options
author | Hal Finkel <hfinkel@anl.gov> | 2012-06-22 20:27:13 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2012-06-22 20:27:13 +0000 |
commit | 8db5547252aa96d4745136892e040ff9417a5d2d (patch) | |
tree | 1002917d73e8ef85075d20212a2d091164d1e6e8 /llvm/lib/CodeGen/DFAPacketizer.cpp | |
parent | b31fe09b0f9dd090b273e520b9ee47d6ab45b936 (diff) | |
download | bcm5719-llvm-8db5547252aa96d4745136892e040ff9417a5d2d.tar.gz bcm5719-llvm-8db5547252aa96d4745136892e040ff9417a5d2d.zip |
Revert r158679 - use case is unclear (and it increases the memory footprint).
Original commit message:
Allow up to 64 functional units per processor itinerary.
This patch changes the type used to hold the FU bitset from unsigned to uint64_t.
This will be needed for some upcoming PowerPC itineraries.
llvm-svn: 159027
Diffstat (limited to 'llvm/lib/CodeGen/DFAPacketizer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/DFAPacketizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DFAPacketizer.cpp b/llvm/lib/CodeGen/DFAPacketizer.cpp index d4775775c05..ff2f11353af 100644 --- a/llvm/lib/CodeGen/DFAPacketizer.cpp +++ b/llvm/lib/CodeGen/DFAPacketizer.cpp @@ -66,7 +66,7 @@ void DFAPacketizer::ReadTable(unsigned int state) { bool DFAPacketizer::canReserveResources(const llvm::MCInstrDesc *MID) { unsigned InsnClass = MID->getSchedClass(); const llvm::InstrStage *IS = InstrItins->beginStage(InsnClass); - uint64_t FuncUnits = IS->getUnits(); + unsigned FuncUnits = IS->getUnits(); UnsignPair StateTrans = UnsignPair(CurrentState, FuncUnits); ReadTable(CurrentState); return (CachedTable.count(StateTrans) != 0); @@ -78,7 +78,7 @@ bool DFAPacketizer::canReserveResources(const llvm::MCInstrDesc *MID) { void DFAPacketizer::reserveResources(const llvm::MCInstrDesc *MID) { unsigned InsnClass = MID->getSchedClass(); const llvm::InstrStage *IS = InstrItins->beginStage(InsnClass); - uint64_t FuncUnits = IS->getUnits(); + unsigned FuncUnits = IS->getUnits(); UnsignPair StateTrans = UnsignPair(CurrentState, FuncUnits); ReadTable(CurrentState); assert(CachedTable.count(StateTrans) != 0); |