From: Friedrich Vock Date: Wed, 12 Apr 2023 15:15:29 +0000 (+0200) Subject: nir: Remove unnecessary assert in nir_before_src X-Git-Tag: upstream/23.3.3~7638 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87ac5d7d0a14be1457385ccf3e11059aedd95acb;p=platform%2Fupstream%2Fmesa.git nir: Remove unnecessary assert in nir_before_src This condition can occur in the wild (more specifically in RT shader call lowering), and it is handled correctly. Cc: mesa-stable Reviewed-by: Timothy Arceri Reviewed-by: Konstantin Seurer Part-of: --- diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 07b0f71..0677930 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4251,7 +4251,6 @@ nir_before_src(nir_src *src) if (src->is_if) { nir_block *prev_block = nir_cf_node_as_block(nir_cf_node_prev(&src->parent_if->cf_node)); - assert(!nir_block_ends_in_jump(prev_block)); return nir_after_block(prev_block); } else if (src->parent_instr->type == nir_instr_type_phi) { #ifndef NDEBUG