summaryrefslogtreecommitdiffstats
path: root/compiler
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2015-04-17 10:03:22 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-17 10:03:22 +0000
commitdd2cf0c7a5dc7f2c89b8ac217f16b7529461e509 (patch)
treeeccb77f011b88a3df1f3a4789d4192d509a7c6a9 /compiler
parentf8bdd9f3a002970e4b8fdcf6fe6730116f1626c3 (diff)
parent3192540155d51a42b340de7afebe83a5eaf23b03 (diff)
downloadart-dd2cf0c7a5dc7f2c89b8ac217f16b7529461e509.tar.gz
art-dd2cf0c7a5dc7f2c89b8ac217f16b7529461e509.tar.bz2
art-dd2cf0c7a5dc7f2c89b8ac217f16b7529461e509.zip
Merge "Cleanup unnecessary test conditions in ssa builder."
Diffstat (limited to 'compiler')
-rw-r--r--compiler/optimizing/ssa_builder.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/optimizing/ssa_builder.cc b/compiler/optimizing/ssa_builder.cc
index 5c3d9bf725..7a252af2ad 100644
--- a/compiler/optimizing/ssa_builder.cc
+++ b/compiler/optimizing/ssa_builder.cc
@@ -186,11 +186,9 @@ void SsaBuilder::FixNullConstantType() {
HInstruction* right = equality_instr->InputAt(1);
HInstruction* null_instr = nullptr;
- if ((left->GetType() == Primitive::kPrimNot)
- && (right->IsNullConstant() || right->IsIntConstant())) {
+ if ((left->GetType() == Primitive::kPrimNot) && right->IsIntConstant()) {
null_instr = right;
- } else if ((right->GetType() == Primitive::kPrimNot)
- && (left->IsNullConstant() || left->IsIntConstant())) {
+ } else if ((right->GetType() == Primitive::kPrimNot) && left->IsIntConstant()) {
null_instr = left;
} else {
continue;