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:
Rhys Perry 2024-11-27 14:25:30 +00:00 committed by Marge Bot
parent 7a500c8b22
commit 4c3809e7fc

View file

@ -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;
};