nir/lower_idiv: add new llvm-based path
[mesa.git] / src / amd / compiler / aco_instruction_selection_setup.cpp
index 35383671c21cae223e0f8cb1942910f1b7a6dae2..fa457e2e246b03250d83bbb06c5de2e26c19fd5c 100644 (file)
@@ -1328,7 +1328,7 @@ setup_isel_context(Program* program,
                                                       nir_lower_iabs64));
 
       nir_opt_idiv_const(nir, 32);
-      nir_lower_idiv(nir); // TODO: use the LLVM path once !1239 is merged
+      nir_lower_idiv(nir, nir_lower_idiv_fast); // TODO: use the LLVM path once !1239 is merged
 
       /* optimize the lowered ALU operations */
       nir_copy_prop(nir);