aco: handle v_add_co_u32_e64 in parse_base_offset()
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 21 Feb 2020 12:02:06 +0000 (12:02 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 18:31:06 +0000 (18:31 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3902>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3902>

src/amd/compiler/aco_optimizer.cpp

index 42fef6f9a2484d281055d9b056155462b23770b4..95773c1205c4e52a5a6ded2092126d8827a65e0d 100644 (file)
@@ -622,6 +622,7 @@ bool parse_base_offset(opt_ctx &ctx, Instruction* instr, unsigned op_index, Temp
    switch (add_instr->opcode) {
    case aco_opcode::v_add_u32:
    case aco_opcode::v_add_co_u32:
+   case aco_opcode::v_add_co_u32_e64:
    case aco_opcode::s_add_i32:
    case aco_opcode::s_add_u32:
       break;
@@ -1143,6 +1144,7 @@ void label_instruction(opt_ctx &ctx, Block& block, aco_ptr<Instruction>& instr)
    }
    case aco_opcode::v_add_u32:
    case aco_opcode::v_add_co_u32:
+   case aco_opcode::v_add_co_u32_e64:
    case aco_opcode::s_add_i32:
    case aco_opcode::s_add_u32:
       ctx.info[instr->definitions[0].tempId()].set_add_sub(instr.get());