mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
APInt: microoptimize a few methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -759,10 +759,6 @@ APInt APInt::getLoBits(unsigned numBits) const {
|
||||
BitWidth - numBits);
|
||||
}
|
||||
|
||||
bool APInt::isPowerOf2() const {
|
||||
return (!!*this) && !(*this & (*this - APInt(BitWidth,1)));
|
||||
}
|
||||
|
||||
unsigned APInt::countLeadingZerosSlowCase() const {
|
||||
// Treat the most significand word differently because it might have
|
||||
// meaningless bits set beyond the precision.
|
||||
|
Reference in New Issue
Block a user