diff options
| author | Jakub Staszak <kubastaszak@gmail.com> | 2013-06-15 12:20:44 +0000 | 
|---|---|---|
| committer | Jakub Staszak <kubastaszak@gmail.com> | 2013-06-15 12:20:44 +0000 | 
| commit | 4898e62ac09c045c9342c231b73e6150f0d2cd4f (patch) | |
| tree | ea85114e2a6cb72765cf62d1d2f8bfbdc22fd17b /llvm/lib/Transforms | |
| parent | d667641542527305ec11407d20d14826b087178b (diff) | |
| download | bcm5719-llvm-4898e62ac09c045c9342c231b73e6150f0d2cd4f.tar.gz bcm5719-llvm-4898e62ac09c045c9342c231b73e6150f0d2cd4f.zip  | |
Use 0 instead of NULL.
llvm-svn: 184044
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index b107fef35a0..246de56d9ad 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -1741,7 +1741,7 @@ void LSRInstance::OptimizeShadowIV() {      IVUsers::const_iterator CandidateUI = UI;      ++UI;      Instruction *ShadowUse = CandidateUI->getUser(); -    Type *DestTy = NULL; +    Type *DestTy = 0;      bool IsSigned = false;      /* If shadow use is a int->float cast then insert a second IV @@ -1803,7 +1803,7 @@ void LSRInstance::OptimizeShadowIV() {        continue;      /* Initialize new IV, double d = 0.0 in above example. */ -    ConstantInt *C = NULL; +    ConstantInt *C = 0;      if (Incr->getOperand(0) == PH)        C = dyn_cast<ConstantInt>(Incr->getOperand(1));      else if (Incr->getOperand(1) == PH) @@ -3125,7 +3125,7 @@ static const SCEV *CollectSubexprs(const SCEV *S, const SCEVConstant *C,        if (Remainder)          Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder);      } -    return NULL; +    return 0;    } else if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {      // Split a non-zero base out of an addrec.      if (AR->getStart()->isZero()) @@ -3137,7 +3137,7 @@ static const SCEV *CollectSubexprs(const SCEV *S, const SCEVConstant *C,      // does not pertain to this loop.      if (Remainder && (AR->getLoop() == L || !isa<SCEVAddRecExpr>(Remainder))) {        Ops.push_back(C ? SE.getMulExpr(C, Remainder) : Remainder); -      Remainder = NULL; +      Remainder = 0;      }      if (Remainder != AR->getStart()) {        if (!Remainder) @@ -3159,7 +3159,7 @@ static const SCEV *CollectSubexprs(const SCEV *S, const SCEVConstant *C,          CollectSubexprs(Mul->getOperand(1), C, Ops, L, SE, Depth+1);        if (Remainder)          Ops.push_back(SE.getMulExpr(C, Remainder)); -      return NULL; +      return 0;      }    }    return S;  | 

