mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir/opt_if: use nir_alu_instr_is_comparison directly
Since 2d6233d0 ("nir: Check all sizes in nir_alu_instr_is_comparison"),
nir_alu_instr_is_comparison already returns true for comparisons with 32bit
result.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23287>
This commit is contained in:
parent
94958e637d
commit
76a82c3ac9
1 changed files with 1 additions and 21 deletions
|
|
@ -269,26 +269,6 @@ opt_peel_loop_initial_if(nir_loop *loop)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
alu_instr_is_comparison(const nir_alu_instr *alu)
|
||||
{
|
||||
switch (alu->op) {
|
||||
case nir_op_flt32:
|
||||
case nir_op_fge32:
|
||||
case nir_op_feq32:
|
||||
case nir_op_fneu32:
|
||||
case nir_op_ilt32:
|
||||
case nir_op_ult32:
|
||||
case nir_op_ige32:
|
||||
case nir_op_uge32:
|
||||
case nir_op_ieq32:
|
||||
case nir_op_ine32:
|
||||
return true;
|
||||
default:
|
||||
return nir_alu_instr_is_comparison(alu);
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
alu_instr_is_type_conversion(const nir_alu_instr *alu)
|
||||
{
|
||||
|
|
@ -423,7 +403,7 @@ opt_split_alu_of_phi(nir_builder *b, nir_loop *loop)
|
|||
* conversions also lead to regressions.
|
||||
*/
|
||||
if (nir_op_is_vec(alu->op) ||
|
||||
alu_instr_is_comparison(alu) ||
|
||||
nir_alu_instr_is_comparison(alu) ||
|
||||
alu_instr_is_type_conversion(alu))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue