Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp6492 APInt DemandBits(BitWidth, 0); in optimizeLoadExt() local
6515 DemandBits |= AndBits; in optimizeLoadExt()
6529 DemandBits.setLowBits(BitWidth - ShiftAmt); in optimizeLoadExt()
6536 DemandBits.setLowBits(TruncBitWidth); in optimizeLoadExt()
6545 uint32_t ActiveBits = DemandBits.getActiveBits(); in optimizeLoadExt()
6557 if (ActiveBits <= 1 || !DemandBits.isMask(ActiveBits) || in optimizeLoadExt()
6558 WidestAndBits != DemandBits) in optimizeLoadExt()
6572 Builder.CreateAnd(Load, ConstantInt::get(Ctx, DemandBits))); in optimizeLoadExt()
6586 if (cast<ConstantInt>(And->getOperand(1))->getValue() == DemandBits) { in optimizeLoadExt()