Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index f7ef91a088d9ea639a80089fc62ef85d39ed79be..81f0ef8fd79c1ba4880714dbf9f6ac07566cdd72 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8041,10 +8041,6 @@ void HOptimizedGraphBuilder::VisitCompareOperation(CompareOperation* expr) { |
result->set_position(expr->position()); |
return ast_context()->ReturnInstruction(result, expr->id()); |
} else { |
- // TODO(verwaest): Remove once Representation::FromType properly |
- // returns Smi when the IC measures Smi. |
- if (left_type->Is(Type::Smi())) left_rep = Representation::Smi(); |
- if (right_type->Is(Type::Smi())) right_rep = Representation::Smi(); |
HCompareNumericAndBranch* result = |
new(zone()) HCompareNumericAndBranch(left, right, op); |
result->set_observed_input_representation(left_rep, right_rep); |