aco/ra: adjust_max_used_regs() for fixed Operands
authorDaniel Schürmann <daniel@schuermann.dev>
Mon, 3 Apr 2023 16:16:50 +0000 (18:16 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 18:35:43 +0000 (18:35 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22267>

src/amd/compiler/aco_register_allocation.cpp

index 7eaaf45..a0cf33a 100644 (file)
@@ -1977,6 +1977,7 @@ handle_fixed_operands(ra_ctx& ctx, RegisterFile& register_file,
          continue;
 
       PhysReg src = ctx.assignments[op.tempId()].reg;
+      adjust_max_used_regs(ctx, op.regClass(), op.physReg());
 
       if (op.physReg() == src) {
          tmp_file.block(op.physReg(), op.regClass());