| Index: src/hydrogen-uint32-analysis.cc
|
| diff --git a/src/hydrogen-uint32-analysis.cc b/src/hydrogen-uint32-analysis.cc
|
| index d796b37e789382e59b8c02a6175783f46464b375..67219f55dff778f78e9c4a02205cf6064ebdfe64 100644
|
| --- a/src/hydrogen-uint32-analysis.cc
|
| +++ b/src/hydrogen-uint32-analysis.cc
|
| @@ -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.
|
|
|