[llvm] r221374 - remove extra breaks; NFC
Sanjay Patel
spatel at rotateright.com
Wed Nov 5 10:00:07 PST 2014
Author: spatel
Date: Wed Nov 5 12:00:07 2014
New Revision: 221374
URL: http://llvm.org/viewvc/llvm-project?rev=221374&view=rev
Log:
remove extra breaks; NFC
Modified:
llvm/trunk/lib/Analysis/ValueTracking.cpp
Modified: llvm/trunk/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ValueTracking.cpp?rev=221374&r1=221373&r2=221374&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/ValueTracking.cpp Wed Nov 5 12:00:07 2014
@@ -1005,7 +1005,6 @@ void computeKnownBits(Value *V, APInt &K
KnownZero <<= ShiftAmt;
KnownOne <<= ShiftAmt;
KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt); // low bits known 0
- break;
}
break;
case Instruction::LShr:
@@ -1015,12 +1014,11 @@ void computeKnownBits(Value *V, APInt &K
uint64_t ShiftAmt = SA->getLimitedValue(BitWidth);
// Unsigned shift right.
- computeKnownBits(I->getOperand(0), KnownZero,KnownOne, TD, Depth+1, Q);
+ computeKnownBits(I->getOperand(0), KnownZero, KnownOne, TD, Depth+1, Q);
KnownZero = APIntOps::lshr(KnownZero, ShiftAmt);
KnownOne = APIntOps::lshr(KnownOne, ShiftAmt);
// high bits known zero.
KnownZero |= APInt::getHighBitsSet(BitWidth, ShiftAmt);
- break;
}
break;
case Instruction::AShr:
@@ -1039,7 +1037,6 @@ void computeKnownBits(Value *V, APInt &K
KnownZero |= HighBits;
else if (KnownOne[BitWidth-ShiftAmt-1]) // New bits are known one.
KnownOne |= HighBits;
- break;
}
break;
case Instruction::Sub: {
More information about the llvm-commits
mailing list