[turbofan][cleanup] Remove redundant clause in WriteBarrierKindFor
The if above asks for field_representation to have Compressed or Any Machine Representation. Therefore, it can never be Signed. The functionality doesn't change. If field_representation is Signed, it will hit the kNoWriteBarrier at the bottom. Cq-Include-Trybots: luci.v8.try:v8_linux64_pointer_compression_rel_ng Cq-Include-Trybots: luci.v8.try:v8_linux64_arm64_pointer_compression_rel_ng Bug: v8:9396 Change-Id: I39eff3ae082e91d0494134b053c353a2c0ff02c1 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1702615 Reviewed-by: Sigurd Schneider <sigurds@chromium.org> Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org> Cr-Commit-Position: refs/heads/master@{#62890}
This commit is contained in:
parent
f6dfd2dcd3
commit
bd70a600ba
@ -1299,9 +1299,7 @@ class RepresentationSelector {
|
||||
if (base_taggedness == kTaggedBase &&
|
||||
CanBeTaggedOrCompressedPointer(field_representation)) {
|
||||
Type value_type = NodeProperties::GetType(value);
|
||||
if (field_representation == MachineRepresentation::kTaggedSigned ||
|
||||
value_representation == MachineRepresentation::kTaggedSigned ||
|
||||
field_representation == MachineRepresentation::kCompressedSigned ||
|
||||
if (value_representation == MachineRepresentation::kTaggedSigned ||
|
||||
value_representation == MachineRepresentation::kCompressedSigned) {
|
||||
// Write barriers are only for stores of heap objects.
|
||||
return kNoWriteBarrier;
|
||||
|
Loading…
Reference in New Issue
Block a user