[llvm] r304656 - [LazyValueInfo] Use Type::getIntegerBitWidth instead of casting to IntegerType to call getBitWidth. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 3 00:47:14 PDT 2017
Author: ctopper
Date: Sat Jun 3 02:47:14 2017
New Revision: 304656
URL: http://llvm.org/viewvc/llvm-project?rev=304656&view=rev
Log:
[LazyValueInfo] Use Type::getIntegerBitWidth instead of casting to IntegerType to call getBitWidth. NFC
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=304656&r1=304655&r2=304656&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Sat Jun 3 02:47:14 2017
@@ -1213,8 +1213,7 @@ bool LazyValueInfoImpl::solveBlockValueC
LHSRange = LHSVal.getConstantRange();
}
- const unsigned ResultBitWidth =
- cast<IntegerType>(CI->getType())->getBitWidth();
+ const unsigned ResultBitWidth = CI->getType()->getIntegerBitWidth();
// NOTE: We're currently limited by the set of operations that ConstantRange
// can evaluate symbolically. Enhancing that set will allows us to analyze
More information about the llvm-commits
mailing list