Commit 374dc591 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[instruction-selector-x64] Remove over-restrictive check

Change-Id: I6a220b6043da8f9c8c036c92e3f4da6ca7d801d4
Bug: v8:8344
Reviewed-on: https://chromium-review.googlesource.com/c/1306436Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57111}
parent d3f74c98
......@@ -1727,14 +1727,12 @@ void VisitWordCompare(InstructionSelector* selector, Node* node,
// values to Word32 range, no need to do that explicitly.
if (opcode == kX64Cmp32 || opcode == kX64Test32) {
if (left->opcode() == IrOpcode::kTruncateInt64ToInt32 &&
selector->CanCover(node, left) &&
selector->CanCover(left, left->InputAt(0))) {
selector->CanCover(node, left)) {
left = left->InputAt(0);
}
if (right->opcode() == IrOpcode::kTruncateInt64ToInt32 &&
selector->CanCover(node, right) &&
selector->CanCover(right, right->InputAt(0))) {
selector->CanCover(node, right)) {
right = right->InputAt(0);
}
}
......
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