Commit 6f62fd3d authored by epertoso's avatar epertoso Committed by Commit bot

[turbofan] Do not generate unnecessary moves when casting a tagged value to a word.

We currently use BitcastTaggedToWord only in from the code assemblers to verify the correctness of the operation.

BUG=

Review-Url: https://codereview.chromium.org/2605073002
Cr-Commit-Position: refs/heads/master@{#41979}
parent e0f97ebb
...@@ -1636,8 +1636,7 @@ void InstructionSelector::VisitStackSlot(Node* node) { ...@@ -1636,8 +1636,7 @@ void InstructionSelector::VisitStackSlot(Node* node) {
} }
void InstructionSelector::VisitBitcastTaggedToWord(Node* node) { void InstructionSelector::VisitBitcastTaggedToWord(Node* node) {
OperandGenerator g(this); EmitIdentity(node);
Emit(kArchNop, g.DefineSameAsFirst(node), g.Use(node->InputAt(0)));
} }
void InstructionSelector::VisitBitcastWordToTagged(Node* node) { void InstructionSelector::VisitBitcastWordToTagged(Node* node) {
......
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