Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dcanonicalize-signed-truncation-check.ll7 ; ((%x << MaskedBits) a>> MaskedBits) != %x
10 ; Where KeptBits = bitwidth(%x) - MaskedBits
H A Dcanonicalize-lack-of-signed-truncation-check.ll7 ; ((%x << MaskedBits) a>> MaskedBits) == %x
10 ; Where KeptBits = bitwidth(%x) - MaskedBits
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp568 Value *MaskedBits = B.CreateAnd(Bits, BitMask); in createMaskedBitTest() local
569 return B.CreateICmpNE(MaskedBits, ConstantInt::get(BitsType, 0)); in createMaskedBitTest()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp3756 const APInt &MaskedBits = *C0; in foldICmpWithTruncSignExtendedVal() local
3757 assert(MaskedBits != 0 && "shift by zero should be folded away already."); in foldICmpWithTruncSignExtendedVal()
3781 assert(BitWidth.ugt(MaskedBits) && "shifts should leave some bits untouched"); in foldICmpWithTruncSignExtendedVal()
3784 const APInt KeptBits = BitWidth - MaskedBits; in foldICmpWithTruncSignExtendedVal()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp3827 const unsigned MaskedBits = XVT.getSizeInBits() - KeptBits; in optimizeSetCCOfSignedTruncationCheck() local
3828 assert(MaskedBits > 0 && MaskedBits < XVT.getSizeInBits() && "unreachable"); in optimizeSetCCOfSignedTruncationCheck()
3832 SDValue ShiftAmt = DAG.getConstant(MaskedBits, DL, XVT); in optimizeSetCCOfSignedTruncationCheck()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp17437 uint32_t MaskedBits = countLeadingZeros(AndMask); in PerformShiftCombine() local
17438 if (MaskedBits > ShiftAmt) { in PerformShiftCombine()
17441 DAG.getConstant(MaskedBits, DL, MVT::i32)); in PerformShiftCombine()
17444 DAG.getConstant(MaskedBits - ShiftAmt, DL, MVT::i32)); in PerformShiftCombine()