diff options
| author | 2015-11-10 19:53:01 +0000 | |
|---|---|---|
| committer | 2015-11-10 19:53:01 +0000 | |
| commit | 040db345c4bcc5572b9f7dafba168f78a4e99792 (patch) | |
| tree | 635889c0fb76b50593811338316978681430ad0e /compiler | |
| parent | 5c7c8248e48857f3a7c98a02d93c6971834d7241 (diff) | |
Optimizing: Clean up Equal/NotEqual constant folding for nulls.
Change-Id: I17766395092ec61df61ef0b9ae4c37fd38164a3b
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |