Skip to content

Commit a1a7086

Browse files
Abseil Teamcopybara-github
authored andcommitted
Remove the extraneous variable creation in Match().
PiperOrigin-RevId: 673830978 Change-Id: I81e52da873dcff75d6a8502578600ec7db50f221
1 parent 1d4466e commit a1a7086

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

absl/container/internal/raw_hash_set.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,8 @@ struct GroupSse2Impl {
702702
// Returns a bitmask representing the positions of slots that match hash.
703703
BitMask<uint16_t, kWidth> Match(h2_t hash) const {
704704
auto match = _mm_set1_epi8(static_cast<char>(hash));
705-
BitMask<uint16_t, kWidth> result = BitMask<uint16_t, kWidth>(0);
706-
result = BitMask<uint16_t, kWidth>(
705+
return BitMask<uint16_t, kWidth>(
707706
static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
708-
return result;
709707
}
710708

711709
// Returns a bitmask representing the positions of empty slots.

0 commit comments

Comments
 (0)