Home
last modified time | relevance | path

Searched refs:HighestBit (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp810 APInt HighestBit; in foldSignedTruncationCheck() local
812 if (tryToMatchSignedTruncationCheck(ICmp1, X1, HighestBit)) in foldSignedTruncationCheck()
814 else if (tryToMatchSignedTruncationCheck(ICmp0, X1, HighestBit)) in foldSignedTruncationCheck()
819 assert(HighestBit.isPowerOf2() && "expected to be power of two (non-zero)"); in foldSignedTruncationCheck()
862 APInt SignBitsMask = ~(HighestBit - 1U); in foldSignedTruncationCheck()
873 HighestBit = APIntOps::umin(HighestBit, OtherHighestBit); in foldSignedTruncationCheck()
878 return Builder.CreateICmpULT(X, ConstantInt::get(X->getType(), HighestBit), in foldSignedTruncationCheck()