Merge "Cleanup unnecessary test conditions in ssa builder."
diff --git a/compiler/optimizing/ssa_builder.cc b/compiler/optimizing/ssa_builder.cc
index 5c3d9bf..7a252af 100644
--- a/compiler/optimizing/ssa_builder.cc
+++ b/compiler/optimizing/ssa_builder.cc
@@ -186,11 +186,9 @@
       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;