nir/opt_reassociate: use nir_fp_no_reassoc instead of exact

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40872>
This commit is contained in:
Georg Lehmann 2026-04-09 17:33:23 +02:00 committed by Marge Bot
parent 6549b993e6
commit d2d86b83fb

View file

@ -203,7 +203,7 @@ can_reassociate(nir_alu_instr *alu)
return (props & NIR_OP_IS_2SRC_COMMUTATIVE) &&
((props & NIR_OP_IS_ASSOCIATIVE) ||
(!nir_alu_instr_is_exact(alu) && (props & NIR_OP_IS_INEXACT_ASSOCIATIVE)));
(!nir_alu_instr_no_reassoc(alu) && (props & NIR_OP_IS_INEXACT_ASSOCIATIVE)));
}
/*