From: Caio Marcelo de Oliveira Filho Date: Mon, 11 Feb 2019 19:55:19 +0000 (-0800) Subject: nir: fix example in opt_peel_loop_initial_if description X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=017349997fd3e194ab3e598712a66c04be5a60ad;p=mesa.git nir: fix example in opt_peel_loop_initial_if description Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c index 9909faf09a1..deb723e57d5 100644 --- a/src/compiler/nir/nir_opt_if.c +++ b/src/compiler/nir/nir_opt_if.c @@ -96,7 +96,7 @@ phi_has_constant_from_outside_and_one_from_inside_loop(nir_phi_instr *phi, * block block_1: * vec1 32 ssa_2 = phi block_0: ssa_0, block_7: ssa_5 * vec1 32 ssa_3 = phi block_0: ssa_0, block_7: ssa_1 - * if ssa_2 { + * if ssa_3 { * block block_2: * vec1 32 ssa_4 = load_const (0x00000001) * vec1 32 ssa_5 = iadd ssa_2, ssa_4 @@ -121,9 +121,9 @@ phi_has_constant_from_outside_and_one_from_inside_loop(nir_phi_instr *phi, * // Stuff from block 3 * loop { * block block_1: - * vec1 32 ssa_3 = phi block_0: ssa_0, block_7: ssa_1 + * vec1 32 ssa_2 = phi block_0: ssa_0, block_7: ssa_5 * vec1 32 ssa_6 = load_const (0x00000004) - * vec1 32 ssa_7 = ilt ssa_5, ssa_6 + * vec1 32 ssa_7 = ilt ssa_2, ssa_6 * if ssa_7 { * block block_5: * } else {