| Index: src/ia32/lithium-codegen-ia32.cc
|
| ===================================================================
|
| --- src/ia32/lithium-codegen-ia32.cc (revision 12214)
|
| +++ src/ia32/lithium-codegen-ia32.cc (working copy)
|
| @@ -1019,8 +1019,10 @@
|
| __ idiv(right_reg);
|
|
|
| // Deoptimize if remainder is not 0.
|
| - __ test(edx, Operand(edx));
|
| - DeoptimizeIf(not_zero, instr->environment());
|
| + if (!instr->hydrogen()->CheckFlag(HValue::kWillTruncateToInt32)) {
|
| + __ test(edx, Operand(edx));
|
| + DeoptimizeIf(not_zero, instr->environment());
|
| + }
|
| }
|
|
|
|
|
|
|