diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-02-11 11:55:19 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-02-12 20:33:20 -0800 |
commit | 017349997fd3e194ab3e598712a66c04be5a60ad (patch) | |
tree | 88d22ca80734e1f41b1af6cbb7f48b1f439f2b87 | |
parent | 7e08f22a72cfc379902feeca3673db6aa344f782 (diff) |
nir: fix example in opt_peel_loop_initial_if description
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_opt_if.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |