From b9773631d3e79e2310ed0eb274b4dd9426205066 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 4 Feb 2020 15:12:18 -0800 Subject: [PATCH] aco: Fix signed-vs-unsigned warning. The previous instance of this comparision was 1u to avoid the warning, fix this one too. Fixes: dba71de5c636 ("aco: only create parallelcopy to restore exec at loop exit if needed") Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/aco_insert_exec_mask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_insert_exec_mask.cpp b/src/amd/compiler/aco_insert_exec_mask.cpp index 37a994cd4df..527d63627e0 100644 --- a/src/amd/compiler/aco_insert_exec_mask.cpp +++ b/src/amd/compiler/aco_insert_exec_mask.cpp @@ -526,7 +526,7 @@ unsigned add_coupling_code(exec_ctx& ctx, Block* block, /* create phi for loop footer */ aco_ptr phi{create_instruction(aco_opcode::p_linear_phi, Format::PSEUDO, preds.size(), 1)}; phi->definitions[0] = bld.def(bld.lm); - if (k == info.num_exec_masks - 1) { + if (k == info.num_exec_masks - 1u) { phi->definitions[0].setFixed(exec); need_parallelcopy = false; } -- 2.30.2