summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff options
context:
space:
mode:
authorZhou Sheng <zhousheng00@gmail.com>2007-03-28 03:02:21 +0000
committerZhou Sheng <zhousheng00@gmail.com>2007-03-28 03:02:21 +0000
commit18570b1f14c967a461310a18ca00955dbeeeb39e (patch)
treebe8da8d10a5cb29a7a1c090baa4dbef31ec220a6 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent15316f9568b3ecfc904e751525bc67fcefa9f274 (diff)
downloadbcm5719-llvm-18570b1f14c967a461310a18ca00955dbeeeb39e.tar.gz
bcm5719-llvm-18570b1f14c967a461310a18ca00955dbeeeb39e.zip
Remove unused APInt variable.
llvm-svn: 35414
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index d93b6432e6e..72888091950 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -784,9 +784,6 @@ static void ComputeMaskedBits(Value *V, const APInt &Mask, APInt& KnownZero,
KnownZero = APIntOps::lshr(KnownZero, ShiftAmt);
KnownOne = APIntOps::lshr(KnownOne, ShiftAmt);
- // Handle the sign bits and adjust to where it is now in the mask.
- APInt SignBit(APInt::getSignBit(BitWidth).lshr(ShiftAmt));
-
APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt));
if (KnownZero[BitWidth-ShiftAmt-1]) // New bits are known zero.
KnownZero |= HighBits;
OpenPOWER on IntegriCloud