Don't try to zExt just to check if an integer constant is zero, it might
not fit in a i64.

llvm-svn: 154364
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index dbc1ca9..cf7ce58 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -4431,9 +4431,9 @@
 
   ConstantSDNode *COp0 = dyn_cast<ConstantSDNode>(Op0);
   ConstantSDNode *COp1 = dyn_cast<ConstantSDNode>(Op1);
-  if (COp0 && COp0->getZExtValue() == 0)
+  if (COp0 && COp0->isNullValue())
     Op = Op1;
-  else if (COp1 && COp1->getZExtValue() == 0)
+  else if (COp1 && COp1->isNullValue())
     Op = Op0;
   else
     return false;