Skip to content

Commit

Permalink
Remove the extraneous variable creation in Match().
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 673830978
Change-Id: I81e52da873dcff75d6a8502578600ec7db50f221
  • Loading branch information
Abseil Team authored and copybara-github committed Sep 12, 2024
1 parent 1d4466e commit a1a7086
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions absl/container/internal/raw_hash_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,8 @@ struct GroupSse2Impl {
// Returns a bitmask representing the positions of slots that match hash.
BitMask<uint16_t, kWidth> Match(h2_t hash) const {
auto match = _mm_set1_epi8(static_cast<char>(hash));
BitMask<uint16_t, kWidth> result = BitMask<uint16_t, kWidth>(0);
result = BitMask<uint16_t, kWidth>(
return BitMask<uint16_t, kWidth>(
static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
return result;
}

// Returns a bitmask representing the positions of empty slots.
Expand Down

0 comments on commit a1a7086

Please sign in to comment.