summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2014-05-12 20:11:01 +0000
committerSebastian Pop <spop@codeaurora.org>2014-05-12 20:11:01 +0000
commit05719e486f9e12a92426a613b2006c18bd188876 (patch)
treedea1f076fe6473d29076573f27bb902c4b14a40c /llvm/lib/Analysis/ScalarEvolution.cpp
parent63e4b30f790fe161f5995ee6acebfb64be1702c2 (diff)
downloadbcm5719-llvm-05719e486f9e12a92426a613b2006c18bd188876.tar.gz
bcm5719-llvm-05719e486f9e12a92426a613b2006c18bd188876.zip
use nullptr instead of NULL
llvm-svn: 208622
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 8073b270e1c..7e8a755b205 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -7344,7 +7344,7 @@ const SCEV *SCEVAddRecExpr::computeAccessFunctions(
// Early exit in case this SCEV is not an affine multivariate function.
if (Sizes.empty() || !this->isAffine())
- return NULL;
+ return nullptr;
const SCEV *Zero = SE.getConstant(this->getType(), 0);
const SCEV *Res = this, *Remainder = Zero;
@@ -7446,19 +7446,19 @@ SCEVAddRecExpr::delinearize(ScalarEvolution &SE,
collectParametricTerms(SE, Terms);
if (Terms.empty())
- return NULL;
+ return nullptr;
// Second step: find subscript sizes.
SE.findArrayDimensions(Terms, Sizes);
if (Sizes.empty())
- return NULL;
+ return nullptr;
// Third step: compute the access functions for each subscript.
const SCEV *Remainder = computeAccessFunctions(SE, Subscripts, Sizes);
if (!Remainder || Subscripts.empty())
- return NULL;
+ return nullptr;
DEBUG({
dbgs() << "succeeded to delinearize " << *this << "\n";
OpenPOWER on IntegriCloud