mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
aco: use small_vec in RegCounterMap
This seems to be a little faster. insert_NOPs (navi31): Difference at 95.0% confidence -11.484 +/- 6.13377 -1.62767% +/- 0.860593% (Student's t, pooled s = 5.71913) insert_NOPs (gfx1200): Difference at 95.0% confidence -35.6745 +/- 4.97972 -8.1236% +/- 1.10453% (Student's t, pooled s = 4.6431) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32374>
This commit is contained in:
parent
7a500c8b22
commit
4c3809e7fc
1 changed files with 2 additions and 2 deletions
|
|
@ -232,11 +232,11 @@ private:
|
|||
struct entry {
|
||||
uint16_t reg;
|
||||
int16_t val;
|
||||
bool operator==(const entry& other) const { return reg == other.reg && val == other.val; }
|
||||
bool operator!=(const entry& other) const { return reg != other.reg || val != other.val; }
|
||||
};
|
||||
|
||||
std::bitset<128> present;
|
||||
std::vector<entry> list;
|
||||
small_vec<entry, 4> list;
|
||||
int base = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue