From 42a5be975adc51d1029f25719b979bf2b3bae8a9 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 23 Feb 2022 17:35:33 +0000 Subject: [PATCH] aco/insert_exec_mask: use get_exec_op MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No fossil-db changes. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_insert_exec_mask.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp index 5638b4e8ce0..04928c3c722 100644 --- a/src/amd/compiler/aco_insert_exec_mask.cpp +++ b/src/amd/compiler/aco_insert_exec_mask.cpp @@ -613,12 +613,11 @@ process_instructions(exec_ctx& ctx, Block* block, std::vector= 0; i--) { if (ctx.info[block->index].exec[i].second & mask_type_exact) { - Instruction* andn2 = bld.sop2(Builder::s_andn2, bld.def(bld.lm), bld.def(s1, scc), - ctx.info[block->index].exec[i].first, cond); - if (i == (int)ctx.info[block->index].exec.size() - 1) { - andn2->operands[0] = Operand(exec, bld.lm); + Instruction* andn2 = + bld.sop2(Builder::s_andn2, bld.def(bld.lm), bld.def(s1, scc), + get_exec_op(ctx.info[block->index].exec[i].first), cond); + if (i == (int)ctx.info[block->index].exec.size() - 1) andn2->definitions[0] = Definition(exec, bld.lm); - } ctx.info[block->index].exec[i].first = Operand(andn2->definitions[0].getTemp()); exit_cond = andn2->definitions[1].getTemp();