[SCEV] Minor naming, braces cleanup; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 2 Mar 2016 04:52:22 +0000 (04:52 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 2 Mar 2016 04:52:22 +0000 (04:52 +0000)
llvm-svn: 262459

llvm/lib/Analysis/ScalarEvolution.cpp

index f55fcfe2dc5c7427953ba2eab41beb0e72f77889..1cb39f65e8b844f11063976e9a5adf12cd72efc2 100644 (file)
@@ -4603,9 +4603,8 @@ SCEV::NoWrapFlags ScalarEvolution::getNoWrapFlagsFromUB(const Value *V) {
     Flags = ScalarEvolution::setFlags(Flags, SCEV::FlagNUW);
   if (BinOp->hasNoSignedWrap())
     Flags = ScalarEvolution::setFlags(Flags, SCEV::FlagNSW);
-  if (Flags == SCEV::FlagAnyWrap) {
+  if (Flags == SCEV::FlagAnyWrap)
     return SCEV::FlagAnyWrap;
-  }
 
   // Here we check that BinOp is in the header of the innermost loop
   // containing BinOp, since we only deal with instructions in the loop
@@ -4613,9 +4612,9 @@ SCEV::NoWrapFlags ScalarEvolution::getNoWrapFlagsFromUB(const Value *V) {
   // recurrence, but getting that requires computing the SCEV of the operands,
   // which can be expensive. This check we can do cheaply to rule out some
   // cases early.
-  Loop *innermostContainingLoop = LI.getLoopFor(BinOp->getParent());
-  if (innermostContainingLoop == nullptr ||
-      innermostContainingLoop->getHeader() != BinOp->getParent())
+  Loop *InnermostContainingLoop = LI.getLoopFor(BinOp->getParent());
+  if (InnermostContainingLoop == nullptr ||
+      InnermostContainingLoop->getHeader() != BinOp->getParent())
     return SCEV::FlagAnyWrap;
 
   // Only proceed if we can prove that BinOp does not yield poison.