nir_lower_idiv() asserts on 64-bit integers.
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
nir_lower_pack(nir);
/* lower ALU operations */
- nir_opt_idiv_const(nir, 32);
- nir_lower_idiv(nir); // TODO: use the LLVM path once !1239 is merged
-
// TODO: implement logic64 in aco, it's more effective for sgprs
nir_lower_int64(nir, (nir_lower_int64_options) (nir_lower_imul64 |
nir_lower_imul_high64 |
nir_lower_iabs64 |
nir_lower_ineg64));
+ nir_opt_idiv_const(nir, 32);
+ nir_lower_idiv(nir); // TODO: use the LLVM path once !1239 is merged
+
/* optimize the lowered ALU operations */
nir_copy_prop(nir);
nir_opt_constant_folding(nir);