Commit 0afbd7ad authored by chunyang.dai's avatar chunyang.dai Committed by Commit bot

X87: [turbofan] Fix stack->stack double moves for pushing on ia32 and x64.

port d0bacc61 (r30235).

original commit message:

BUG=

Review URL: https://codereview.chromium.org/1286123008

Cr-Commit-Position: refs/heads/master@{#30293}
parent 97a48c53
......@@ -857,7 +857,10 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) {
InstructionOperand value =
g.CanBeImmediate(input)
? g.UseImmediate(input)
: IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input);
: IsSupported(ATOM) ||
sequence()->IsFloat(GetVirtualRegister(input))
? g.UseRegister(input)
: g.Use(input);
Emit(kX87Push, g.NoOutput(), value);
}
}
......
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