[llvm] r237687 - As r237678 was reverted, this is no longer needed.
Yaron Keren
yaron.keren at gmail.com
Tue May 19 04:46:28 PDT 2015
Author: yrnkrn
Date: Tue May 19 06:46:27 2015
New Revision: 237687
URL: http://llvm.org/viewvc/llvm-project?rev=237687&view=rev
Log:
As r237678 was reverted, this is no longer needed.
Modified:
llvm/trunk/lib/IR/ConstantFold.cpp
Modified: llvm/trunk/lib/IR/ConstantFold.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ConstantFold.cpp?rev=237687&r1=237686&r2=237687&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ConstantFold.cpp (original)
+++ llvm/trunk/lib/IR/ConstantFold.cpp Tue May 19 06:46:27 2015
@@ -1057,8 +1057,7 @@ Constant *llvm::ConstantFoldBinaryInstru
if (GVAlign > 1) {
unsigned DstWidth = CI2->getType()->getBitWidth();
- unsigned SrcWidth =
- std::min(DstWidth, static_cast<unsigned>(Log2_32(GVAlign)));
+ unsigned SrcWidth = std::min(DstWidth, Log2_32(GVAlign));
APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth));
// If checking bits we know are clear, return zero.
More information about the llvm-commits
mailing list