diff options
| author | 2015-08-13 16:25:52 +0000 | |
|---|---|---|
| committer | 2015-08-13 16:25:52 +0000 | |
| commit | 837b64974977f615dd1f0662857b97536acdb4dd (patch) | |
| tree | 0564fcf0bd8b01644a6453a36983172f5e3d2489 /compiler/optimizing/nodes.h | |
| parent | e28dde5c7907f14042a0c9bcfa8dad436a1d82f4 (diff) | |
| parent | df3f8227badd0276177774a72f1bcb181688d954 (diff) | |
Merge "Adjust art::HTypeConversion's side effects for MIPS64."
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 578b2208d8..0df5d6dd2e 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -3742,9 +3742,8 @@ class HTypeConversion : public HExpression<1> { // Some architectures may not require the 'GC' side effects, but at this point // in the compilation process we do not know what architecture we will // generate code for, so we must be conservative. - if (((input_type == Primitive::kPrimFloat || input_type == Primitive::kPrimDouble) - && result_type == Primitive::kPrimLong) - || (input_type == Primitive::kPrimLong && result_type == Primitive::kPrimFloat)) { + if ((Primitive::IsFloatingPointType(input_type) && Primitive::IsIntegralType(result_type)) + || (input_type == Primitive::kPrimLong && Primitive::IsFloatingPointType(result_type))) { return SideEffects::CanTriggerGC(); } return SideEffects::None(); |