Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp70 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
72 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits()
83 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() argument
87 SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, KnownOne, Depth, in SimplifyDemandedBits()
116 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
122 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
132 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
133 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
139 KnownZero = DemandedMask; in SimplifyDemandedUseBits()
145 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.cpp203 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
204 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
205 if (Value *V = SimplifyDemandedVectorElts(EI.getOperand(0), DemandedMask, in visitExtractElementInst()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1629 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local
1634 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine()
1635 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
1646 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
1651 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine()
1652 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp376 const APInt &DemandedMask, in SimplifyDemandedBits() argument
381 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
384 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
401 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
/external/llvm/include/llvm/Target/
DTargetLowering.h2088 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/external/llvm/lib/Target/X86/
DX86ISelLowering.cpp21258 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 1); in PerformSELECTCombine() local
21263 if (TLO.ShrinkDemandedConstant(Cond, DemandedMask) || in PerformSELECTCombine()
21264 TLI.SimplifyDemandedBits(Cond, DemandedMask, KnownZero, KnownOne, in PerformSELECTCombine()
23180 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine() local
23185 if (TLO.ShrinkDemandedConstant(Op1, DemandedMask) || in PerformBTCombine()
23186 TLI.SimplifyDemandedBits(Op1, DemandedMask, KnownZero, KnownOne, TLO)) in PerformBTCombine()