mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nir: Minor clean up in nir_alu_srcs_negative_equal
Eliminate some cruft left after a8013644a1.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27087>
This commit is contained in:
parent
b289028d0a
commit
4740ee8d67
1 changed files with 1 additions and 8 deletions
|
|
@ -391,20 +391,12 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
|
|||
}
|
||||
#endif
|
||||
|
||||
bool parity = false;
|
||||
|
||||
/* Handling load_const instructions is tricky. */
|
||||
|
||||
const nir_const_value *const const1 =
|
||||
nir_src_as_const_value(alu1->src[src1].src);
|
||||
|
||||
if (const1 != NULL) {
|
||||
/* Assume that constant folding will eliminate source mods and unary
|
||||
* ops.
|
||||
*/
|
||||
if (parity)
|
||||
return false;
|
||||
|
||||
const nir_const_value *const const2 =
|
||||
nir_src_as_const_value(alu2->src[src2].src);
|
||||
|
||||
|
|
@ -431,6 +423,7 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
|
|||
uint8_t alu1_swizzle[NIR_MAX_VEC_COMPONENTS] = { 0 };
|
||||
nir_src alu1_actual_src;
|
||||
nir_alu_instr *neg1 = get_neg_instr(alu1->src[src1].src);
|
||||
bool parity = false;
|
||||
|
||||
if (neg1) {
|
||||
parity = !parity;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue