mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Rename ComputeMaskedBits to computeKnownBits. "Masked" has been
inappropriate since it lost its Mask parameter in r154011. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1058,7 +1058,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
|
||||
unsigned DstBits = LHSI->getType()->getPrimitiveSizeInBits(),
|
||||
SrcBits = LHSI->getOperand(0)->getType()->getPrimitiveSizeInBits();
|
||||
APInt KnownZero(SrcBits, 0), KnownOne(SrcBits, 0);
|
||||
ComputeMaskedBits(LHSI->getOperand(0), KnownZero, KnownOne);
|
||||
computeKnownBits(LHSI->getOperand(0), KnownZero, KnownOne);
|
||||
|
||||
// If all the high bits are known, we can do this xform.
|
||||
if ((KnownZero|KnownOne).countLeadingOnes() >= SrcBits-DstBits) {
|
||||
|
Reference in New Issue
Block a user