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>
This commit is contained in:
committed by
Marge Bot
parent
ffb4790279
commit
8b7a42d6d0
@@ -829,7 +829,8 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
|
||||
Format format = is_vgpr ? Format::VOP1 : Format::SOP1;
|
||||
instr->opcode = opcode;
|
||||
instr->format = format;
|
||||
instr->operands = {instr->operands.begin(), 1 };
|
||||
while (instr->operands.size() > 1)
|
||||
instr->operands.pop_back();
|
||||
instr->operands[0] = vec_op;
|
||||
|
||||
if (vec_op.isConstant()) {
|
||||
|
||||
Reference in New Issue
Block a user