| Index: src/x64/lithium-codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/lithium-codegen-x64.cc (revision 12214)
|
| +++ src/x64/lithium-codegen-x64.cc (working copy)
|
| @@ -1012,8 +1012,10 @@
|
| __ idivl(right_reg);
|
|
|
| // Deoptimize if remainder is not 0.
|
| - __ testl(rdx, rdx);
|
| - DeoptimizeIf(not_zero, instr->environment());
|
| + if (!instr->hydrogen()->CheckFlag(HValue::kWillTruncateToInt32)) {
|
| + __ testl(rdx, rdx);
|
| + DeoptimizeIf(not_zero, instr->environment());
|
| + }
|
| }
|
|
|
|
|
|
|