Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits()
71 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() argument
75 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, in SimplifyDemandedBits()
104 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
110 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
120 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
121 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
127 KnownZero = DemandedMask; in SimplifyDemandedUseBits()
133 if (DemandedMask == 0) { // Not demanding any bits from V. in SimplifyDemandedUseBits()
[all …]
DInstCombineInternal.h515 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero,
518 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero,
523 APInt DemandedMask, APInt &KnownZero,
DInstCombineVectorOps.cpp156 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
157 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
158 if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, in visitExtractElementInst()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1633 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local
1638 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine()
1639 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
1650 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
1655 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine()
1656 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp388 const APInt &DemandedMask, in SimplifyDemandedBits() argument
393 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
396 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
414 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
/external/llvm/include/llvm/Target/
DTargetLowering.h2154 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp24429 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 1); in PerformSELECTCombine() local
24434 if (TLO.ShrinkDemandedConstant(Cond, DemandedMask) || in PerformSELECTCombine()
24435 TLI.SimplifyDemandedBits(Cond, DemandedMask, KnownZero, KnownOne, in PerformSELECTCombine()
26896 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine() local
26901 if (TLO.ShrinkDemandedConstant(Op1, DemandedMask) || in PerformBTCombine()
26902 TLI.SimplifyDemandedBits(Op1, DemandedMask, KnownZero, KnownOne, TLO)) in PerformBTCombine()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp8761 APInt DemandedMask = APInt::getLowBitsSet(64, 56); in performTBISimplification() local
8766 if (TLI.SimplifyDemandedBits(Addr, DemandedMask, KnownZero, KnownOne, TLO)) { in performTBISimplification()