Commit 104283a2 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[wasm-simd][ia32] Small optimization for i64x2.abs

We no longer need unique register for src, since I64x2Abs
macro-assembler handles the case when dst == src (by using the scratch).
This is equivalent to calling the VisitRRSimd helper.

Bug: v8:11190
Change-Id: Ibabb6da970e983ca2c9326057a6dc43cc7b7c435
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2750725Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73385}
parent ebad91c6
......@@ -3173,14 +3173,7 @@ void InstructionSelector::VisitI64x2GeS(Node* node) {
}
void InstructionSelector::VisitI64x2Abs(Node* node) {
IA32OperandGenerator g(this);
if (CpuFeatures::IsSupported(AVX)) {
Emit(kIA32I64x2Abs, g.DefineAsRegister(node),
g.UseUniqueRegister(node->InputAt(0)));
} else {
Emit(kIA32I64x2Abs, g.DefineSameAsFirst(node),
g.UseRegister(node->InputAt(0)));
}
VisitRRSimd(this, node, kIA32I64x2Abs, kIA32I64x2Abs);
}
// static
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment