aco: compact aco::span<T> to use uint16_t offset and size instead of pointer and...
authorDaniel Schürmann <daniel@schuermann.dev>
Wed, 8 Jan 2020 11:46:47 +0000 (12:46 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jan 2020 17:49:18 +0000 (17:49 +0000)
commit8b7a42d6d0b15508940e095642136c53d0c7dcee
tree14a18fd6e206676bc94d6705bfcf95c9fcb751ac
parentffb4790279ca779572ec393ba84d71ef1036b437
aco: compact aco::span<T> to use uint16_t offset and size instead of pointer and size_t.

This reduces the size of the Instruction base class
from 40 bytes to 16 bytes. No pipelinedb changes.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3332>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3332>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_ir.h
src/amd/compiler/aco_optimizer.cpp
src/amd/compiler/aco_util.h