aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CellSPU/SPUISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 14:22:04 +0000
commite368b460a206fafa0d31d5d059b1779b94f7df8c (patch)
tree73508159acd14e76dc92313df355849ee75ec35d /lib/Target/CellSPU/SPUISelLowering.cpp
parent7720cb3823d5b5868f9b88b0127277820edcb562 (diff)
downloadexternal_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.gz
external_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.tar.bz2
external_llvm-e368b460a206fafa0d31d5d059b1779b94f7df8c.zip
Eliminate unnecessary uses of getZExtValue().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r--lib/Target/CellSPU/SPUISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp
index affd066876..65eecbaf56 100644
--- a/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -2867,7 +2867,7 @@ SPUTargetLowering::PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const
case SPUISD::IndirectAddr: {
if (!ST->usingLargeMem() && Op0.getOpcode() == SPUISD::AFormAddr) {
ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1));
- if (CN != 0 && CN->getZExtValue() == 0) {
+ if (CN != 0 && CN->isNullValue()) {
// (SPUindirect (SPUaform <addr>, 0), 0) ->
// (SPUaform <addr>, 0)