commit | e368b460a206fafa0d31d5d059b1779b94f7df8c | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Jun 18 14:22:04 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Jun 18 14:22:04 2010 +0000 |
tree | 73508159acd14e76dc92313df355849ee75ec35d | |
parent | 7720cb3823d5b5868f9b88b0127277820edcb562 [diff] [blame] |
Eliminate unnecessary uses of getZExtValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp index 9128889..35a983e 100644 --- a/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -536,7 +536,7 @@ DebugLoc dl = Op->getDebugLoc(); if (N.getOpcode() != ISD::ADD) { ConstantSDNode *NC = dyn_cast<ConstantSDNode>(N); - if (!NC || NC->getZExtValue() != 0) + if (!NC || !NC->isNullValue()) return false; Base = Offset = N;