From 040db345c4bcc5572b9f7dafba168f78a4e99792 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Tue, 10 Nov 2015 19:53:01 +0000 Subject: Optimizing: Clean up Equal/NotEqual constant folding for nulls. Change-Id: I17766395092ec61df61ef0b9ae4c37fd38164a3b --- compiler/optimizing/nodes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 7ea6176e96..a7bd31e370 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2692,7 +2692,7 @@ class HEqual : public HCondition { } HConstant* Evaluate(HNullConstant* x ATTRIBUTE_UNUSED, HNullConstant* y ATTRIBUTE_UNUSED) const OVERRIDE { - return GetBlock()->GetGraph()->GetConstant(GetType(), 1); + return GetBlock()->GetGraph()->GetIntConstant(1); } DECLARE_INSTRUCTION(Equal); @@ -2728,7 +2728,7 @@ class HNotEqual : public HCondition { } HConstant* Evaluate(HNullConstant* x ATTRIBUTE_UNUSED, HNullConstant* y ATTRIBUTE_UNUSED) const OVERRIDE { - return GetBlock()->GetGraph()->GetConstant(GetType(), 0); + return GetBlock()->GetGraph()->GetIntConstant(0); } DECLARE_INSTRUCTION(NotEqual); -- cgit v1.2.3-59-g8ed1b