diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-04-19 17:56:36 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-04-19 17:56:36 +0000 |
commit | a201787fd700b4eaaf951d381a158d093031e71a (patch) | |
tree | cb804a20b0bf7adaaca2f40ab79e431228aaa6f2 /llvm/lib | |
parent | 5e492d29a37d3df39dc1ee4b453c833f16c08010 (diff) | |
download | bcm5719-llvm-a201787fd700b4eaaf951d381a158d093031e71a.tar.gz bcm5719-llvm-a201787fd700b4eaaf951d381a158d093031e71a.zip |
[Reassociate] fix formatting; NFC
llvm-svn: 330348
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 98715363672..0317025e5d2 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -200,14 +200,13 @@ unsigned ReassociatePass::getRank(Value *V) { // for PHI nodes, we cannot have infinite recursion here, because there // cannot be loops in the value graph that do not go through PHI nodes. unsigned Rank = 0, MaxRank = RankMap[I->getParent()]; - for (unsigned i = 0, e = I->getNumOperands(); - i != e && Rank != MaxRank; ++i) + for (unsigned i = 0, e = I->getNumOperands(); i != e && Rank != MaxRank; ++i) Rank = std::max(Rank, getRank(I->getOperand(i))); // If this is a not or neg instruction, do not count it for rank. This // assures us that X and ~X will have the same rank. - if (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I) && - !BinaryOperator::isFNeg(I)) + if (!BinaryOperator::isNot(I) && !BinaryOperator::isNeg(I) && + !BinaryOperator::isFNeg(I)) ++Rank; DEBUG(dbgs() << "Calculated Rank[" << V->getName() << "] = " << Rank << "\n"); |