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 | b460a3382961c5be9952a75d46228f624edbd39f (patch) | |
tree | e501b3464668764da5a5e507d86d4b500bfd41ef /include/llvm/CodeGen/ScoreboardHazardRecognizer.h | |
parent | c90a1fcf9f44858b20e0f5f7e0b98049aec7a1e0 (diff) | |
download | llvm-b460a3382961c5be9952a75d46228f624edbd39f.tar.gz llvm-b460a3382961c5be9952a75d46228f624edbd39f.tar.bz2 llvm-b460a3382961c5be9952a75d46228f624edbd39f.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScoreboardHazardRecognizer.h')
-rw-r--r-- | include/llvm/CodeGen/ScoreboardHazardRecognizer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h index c741e1ba24..060e89a3fd 100644 --- a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h +++ b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h @@ -39,7 +39,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { // bottom-up scheduler, then the scoreboard cycles are the inverse of the // scheduler's cycles. class Scoreboard { - uint64_t *Data; + unsigned *Data; // The maximum number of cycles monitored by the Scoreboard. This // value is determined based on the target itineraries to ensure @@ -54,7 +54,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { } size_t getDepth() const { return Depth; } - uint64_t& operator[](size_t idx) const { + unsigned& operator[](size_t idx) const { // Depth is expected to be a power-of-2. assert(Depth && !(Depth & (Depth - 1)) && "Scoreboard was not initialized properly!"); @@ -65,7 +65,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { void reset(size_t d = 1) { if (Data == NULL) { Depth = d; - Data = new uint64_t[Depth]; + Data = new unsigned[Depth]; } memset(Data, 0, Depth * sizeof(Data[0])); |