Skip to content

Commit 3469bb8

Browse files
committed
lsx: use immediate form of vslti for zero comparison
Replace the sequence that materializes a zero vector and performs `lsx_vslt_b` with the immediate variant `lsx_vslti_b::<0>`.
1 parent 435eaf5 commit 3469bb8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/control/group/lsx.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ impl Group {
117117
// 1111_1111 | 1000_0000 = 1111_1111
118118
// 0000_0000 | 1000_0000 = 1000_0000
119119
unsafe {
120-
let zero = lsx_vreplgr2vr_b(0);
121-
let special = lsx_vslt_b(self.0, zero);
120+
let special = lsx_vslti_b::<0>(self.0);
122121
Group(lsx_vor_v(special, lsx_vreplgr2vr_b(Tag::DELETED.0 as i32)))
123122
}
124123
}

0 commit comments

Comments
 (0)