Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 3c9eb2d796fa1a74ba133f7b577fe5744fa4988a..666b688c92abf61b066343076bd0466b39be47e7 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -952,6 +952,9 @@ LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
+ LInstruction* goto_instr = CheckElideControlInstruction(instr); |
+ if (goto_instr != NULL) return goto_instr; |
+ |
ASSERT(instr->value()->representation().IsTagged()); |
LOperand* value = UseRegisterAtStart(instr->value()); |
return new(zone()) LCmpMapAndBranch(value); |