[llvm] r262459 - [SCEV] Minor naming, braces cleanup; NFC
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 20:52:22 PST 2016
Author: sanjoy
Date: Tue Mar 1 22:52:22 2016
New Revision: 262459
URL: http://llvm.org/viewvc/llvm-project?rev=262459&view=rev
Log:
[SCEV] Minor naming, braces cleanup; NFC
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=262459&r1=262458&r2=262459&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Mar 1 22:52:22 2016
@@ -4603,9 +4603,8 @@ SCEV::NoWrapFlags ScalarEvolution::getNo
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::getNo
// 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.
More information about the llvm-commits
mailing list