[llvm] r326711 - [CVP] fix formatting; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 5 08:08:34 PST 2018
Author: spatel
Date: Mon Mar 5 08:08:34 2018
New Revision: 326711
URL: http://llvm.org/viewvc/llvm-project?rev=326711&view=rev
Log:
[CVP] fix formatting; NFC
Modified:
llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp?rev=326711&r1=326710&r2=326711&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp Mon Mar 5 08:08:34 2018
@@ -433,8 +433,7 @@ static bool hasPositiveOperands(BinaryOp
}
static bool processSRem(BinaryOperator *SDI, LazyValueInfo *LVI) {
- if (SDI->getType()->isVectorTy() ||
- !hasPositiveOperands(SDI, LVI))
+ if (SDI->getType()->isVectorTy() || !hasPositiveOperands(SDI, LVI))
return false;
++NumSRems;
@@ -451,8 +450,7 @@ static bool processSRem(BinaryOperator *
/// conditions, this can sometimes prove conditions instcombine can't by
/// exploiting range information.
static bool processSDiv(BinaryOperator *SDI, LazyValueInfo *LVI) {
- if (SDI->getType()->isVectorTy() ||
- !hasPositiveOperands(SDI, LVI))
+ if (SDI->getType()->isVectorTy() || !hasPositiveOperands(SDI, LVI))
return false;
++NumSDivs;
More information about the llvm-commits
mailing list