Mesa (master): nir: Relax opt_if logic to prevent re-merging 64bit phis for loop headers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 27 17:32:04 UTC 2020


Module: Mesa
Branch: master
Commit: 0d595f72b2ccea462d01923e02957f1458acdd35
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0d595f72b2ccea462d01923e02957f1458acdd35

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Mon Jun  8 05:56:59 2020 -0700

nir: Relax opt_if logic to prevent re-merging 64bit phis for loop headers

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6313>

---

 src/compiler/nir/nir_opt_if.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/compiler/nir/nir_opt_if.c b/src/compiler/nir/nir_opt_if.c
index a97126cb0d8..8b35b167013 100644
--- a/src/compiler/nir/nir_opt_if.c
+++ b/src/compiler/nir/nir_opt_if.c
@@ -292,8 +292,7 @@ static bool
 alu_instr_is_type_conversion(const nir_alu_instr *alu)
 {
    return nir_op_infos[alu->op].num_inputs == 1 &&
-          nir_alu_type_get_base_type(nir_op_infos[alu->op].output_type) !=
-          nir_alu_type_get_base_type(nir_op_infos[alu->op].input_types[0]);
+          nir_op_infos[alu->op].output_type != nir_op_infos[alu->op].input_types[0];
 }
 
 /**



More information about the mesa-commit mailing list