[wasm] Force Swizzles to use registers on x64

Change-Id: If590a86118970d31814c12148bfa16f1c0389c2d
Bug: v8:9083
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1591344
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61216}
This commit is contained in:
Deepti Gandluri 2019-05-01 15:32:13 -07:00 committed by Commit Bot
parent f0b60227ac
commit 314d68b858

View File

@ -3029,7 +3029,10 @@ void InstructionSelector::VisitS8x16Shuffle(Node* node) {
// pshufd takes a single imm8 shuffle mask.
opcode = kX64S32x4Swizzle;
no_same_as_first = true;
src0_needs_reg = false;
// TODO(v8:9083): This doesn't strictly require a register, forcing the
// swizzles to always use registers until generation of incorrect memory
// operands can be fixed.
src0_needs_reg = true;
imms[imm_count++] = shuffle_mask;
}
} else {