Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp950 APInt HighestBit; in foldSignedTruncationCheck() local
952 if (tryToMatchSignedTruncationCheck(ICmp1, X1, HighestBit)) in foldSignedTruncationCheck()
954 else if (tryToMatchSignedTruncationCheck(ICmp0, X1, HighestBit)) in foldSignedTruncationCheck()
959 assert(HighestBit.isPowerOf2() && "expected to be power of two (non-zero)"); in foldSignedTruncationCheck()
1002 APInt SignBitsMask = ~(HighestBit - 1U); in foldSignedTruncationCheck()
1013 HighestBit = APIntOps::umin(HighestBit, OtherHighestBit); in foldSignedTruncationCheck()
1018 return Builder.CreateICmpULT(X, ConstantInt::get(X->getType(), HighestBit), in foldSignedTruncationCheck()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp890 APInt HighestBit; in foldSignedTruncationCheck() local
892 if (tryToMatchSignedTruncationCheck(ICmp1, X1, HighestBit)) in foldSignedTruncationCheck()
894 else if (tryToMatchSignedTruncationCheck(ICmp0, X1, HighestBit)) in foldSignedTruncationCheck()
899 assert(HighestBit.isPowerOf2() && "expected to be power of two (non-zero)"); in foldSignedTruncationCheck()
942 APInt SignBitsMask = ~(HighestBit - 1U); in foldSignedTruncationCheck()
953 HighestBit = APIntOps::umin(HighestBit, OtherHighestBit); in foldSignedTruncationCheck()
958 return Builder.CreateICmpULT(X, ConstantInt::get(X->getType(), HighestBit), in foldSignedTruncationCheck()