Fix invalid condition introduced with revision 15441.
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 2 Jul 2013 12:16:30 +0000 (12:16 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 2 Jul 2013 12:16:30 +0000 (12:16 +0000)
R=danno@chromium.org

Review URL: https://codereview.chromium.org/18375004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15445 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/hydrogen-uint32-analysis.cc

index d796b37..67219f5 100644 (file)
@@ -213,7 +213,11 @@ void HUint32AnalysisPhase::Run() {
     // Analyze instruction and mark it with kUint32 if all
     // its uses are uint32 safe.
     HInstruction* current = uint32_instructions->at(i);
-    if (Uint32UsesAreSafe(current)) current->SetFlag(HInstruction::kUint32);
+    if (current->IsLinked() &&
+        current->representation().IsInteger32() &&
+        Uint32UsesAreSafe(current)) {
+      current->SetFlag(HInstruction::kUint32);
+    }
   }
 
   // Some phis might have been optimistically marked with kUint32 flag.