From: verwaest@chromium.org Date: Thu, 20 Jun 2013 14:20:15 +0000 (+0000) Subject: Also apply InferControlFlowRange to smi-based tests. X-Git-Tag: upstream/4.7.83~13745 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ae544eca7e3ea4a9535dab31da8d308e913c72f;p=platform%2Fupstream%2Fv8.git Also apply InferControlFlowRange to smi-based tests. R=jkummerow@chromium.org Review URL: https://chromiumcodereview.appspot.com/16870011 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15248 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 940973e..a0133e4 100644 --- a/src/hydrogen.cc +++ b/src/hydrogen.cc @@ -2689,7 +2689,7 @@ void HRangeAnalysis::Analyze(HBasicBlock* block) { void HRangeAnalysis::InferControlFlowRange(HCompareIDAndBranch* test, HBasicBlock* dest) { ASSERT((test->FirstSuccessor() == dest) == (test->SecondSuccessor() != dest)); - if (test->representation().IsInteger32()) { + if (test->representation().IsSmiOrInteger32()) { Token::Value op = test->token(); if (test->SecondSuccessor() == dest) { op = Token::NegateCompareOp(op);