[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}
This commit is contained in:
epertoso 2016-12-28 09:26:42 -08:00 committed by Commit bot
parent e0f97ebb32
commit 6f62fd3d83

View File

@ -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) {