Revert "[cleanup] Add operator parameter accessor for S8x16Shuffle"
This reverts commit 7e7c1b10d5
.
Reason for revert: https://logs.chromium.org/logs/v8/buildbucket/cr-buildbucket.appspot.com/8910673611629290864/+/steps/OptimizeForSize/0/logs/RunWasm_S16x4Reverse_simd_lowered/0
Original change's description:
> [cleanup] Add operator parameter accessor for S8x16Shuffle
>
> Bug: v8:7517, v8:9183
> Change-Id: Ic9beade6893b81aaa77f9c634cbeb7444260907b
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/973375
> Auto-Submit: Sigurd Schneider <sigurds@chromium.org>
> Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
> Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#62177}
TBR=sigurds@chromium.org,tebbi@chromium.org
Change-Id: Ic26376c9fe28e7e74cbdb1fa9ec2f7627d2adeee
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: v8:7517, v8:9183
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1660609
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62180}
This commit is contained in:
parent
64daad8e7b
commit
52a4e49c2b
@ -2965,7 +2965,7 @@ void InstructionSelector::CanonicalizeShuffle(bool inputs_equal,
|
||||
void InstructionSelector::CanonicalizeShuffle(Node* node, uint8_t* shuffle,
|
||||
bool* is_swizzle) {
|
||||
// Get raw shuffle indices.
|
||||
memcpy(shuffle, S8x16ShuffleOf(node->op()), kSimd128Size);
|
||||
memcpy(shuffle, OpParameter<uint8_t*>(node->op()), kSimd128Size);
|
||||
bool needs_swap;
|
||||
bool inputs_equal = GetVirtualRegister(node->InputAt(0)) ==
|
||||
GetVirtualRegister(node->InputAt(1));
|
||||
|
@ -1301,11 +1301,6 @@ const Operator* MachineOperatorBuilder::S8x16Shuffle(
|
||||
2, 0, 0, 1, 0, 0, array);
|
||||
}
|
||||
|
||||
const uint8_t* S8x16ShuffleOf(Operator const* op) {
|
||||
DCHECK_EQ(IrOpcode::kS8x16Shuffle, op->opcode());
|
||||
return OpParameter<const uint8_t*>(op);
|
||||
}
|
||||
|
||||
#undef PURE_BINARY_OP_LIST_32
|
||||
#undef PURE_BINARY_OP_LIST_64
|
||||
#undef MACHINE_PURE_OP_LIST
|
||||
|
@ -112,9 +112,6 @@ MachineRepresentation AtomicStoreRepresentationOf(Operator const* op)
|
||||
|
||||
MachineType AtomicOpType(Operator const* op) V8_WARN_UNUSED_RESULT;
|
||||
|
||||
V8_EXPORT_PRIVATE const uint8_t* S8x16ShuffleOf(Operator const* op)
|
||||
V8_WARN_UNUSED_RESULT;
|
||||
|
||||
// Interface for building machine-level operators. These operators are
|
||||
// machine-level but machine-independent and thus define a language suitable
|
||||
// for generating code to run on architectures such as ia32, x64, arm, etc.
|
||||
|
@ -1347,7 +1347,7 @@ void SimdScalarLowering::LowerNode(Node* node) {
|
||||
}
|
||||
case IrOpcode::kS8x16Shuffle: {
|
||||
DCHECK_EQ(2, node->InputCount());
|
||||
const uint8_t* shuffle = S8x16ShuffleOf(node->op());
|
||||
const uint8_t* shuffle = OpParameter<uint8_t*>(node->op());
|
||||
Node** rep_left = GetReplacementsWithType(node->InputAt(0), rep_type);
|
||||
Node** rep_right = GetReplacementsWithType(node->InputAt(1), rep_type);
|
||||
Node** rep_node = zone()->NewArray<Node*>(16);
|
||||
|
Loading…
Reference in New Issue
Block a user