Home
last modified time | relevance | path

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

/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp71 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() local
73 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, in SimplifyDemandedInstructionBits()
84 bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask, in SimplifyDemandedBits() argument
87 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, in SimplifyDemandedBits()
117 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits() argument
123 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits()
136 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits()
137 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits()
143 KnownZero = DemandedMask; in SimplifyDemandedUseBits()
149 if (DemandedMask == 0) { // Not demanding any bits from V. in SimplifyDemandedUseBits()
[all …]
H A DInstCombine.h412 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero,
415 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero,
420 APInt DemandedMask, APInt &KnownZero,
H A DInstCombineVectorOps.cpp202 APInt DemandedMask(VectorWidth, 0); in visitExtractElementInst() local
203 DemandedMask.setBit(IndexVal); in visitExtractElementInst()
205 DemandedMask, UndefElts)) { in visitExtractElementInst()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1632 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() local
1637 if (TLO.ShrinkDemandedConstant(OutVal, DemandedMask) || in PerformDAGCombine()
1638 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
1649 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() local
1654 if (TLO.ShrinkDemandedConstant(Time, DemandedMask) || in PerformDAGCombine()
1655 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine()
/minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp374 const APInt &DemandedMask, in SimplifyDemandedBits() argument
379 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits()
382 APInt NewMask = DemandedMask; in SimplifyDemandedBits()
399 } else if (DemandedMask == 0) { in SimplifyDemandedBits()
797 if (MsbMask == DemandedMask) { in SimplifyDemandedBits()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/Target/
H A DTargetLowering.h2136 bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
/minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp23554 APInt DemandedMask = APInt::getHighBitsSet(BitWidth, 1); in PerformSELECTCombine() local
23559 if (TLO.ShrinkDemandedConstant(Cond, DemandedMask) || in PerformSELECTCombine()
23560 TLI.SimplifyDemandedBits(Cond, DemandedMask, KnownZero, KnownOne, in PerformSELECTCombine()
25329 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, Log2_32(BitWidth)); in PerformBTCombine() local
25334 if (TLO.ShrinkDemandedConstant(Op1, DemandedMask) || in PerformBTCombine()
25335 TLI.SimplifyDemandedBits(Op1, DemandedMask, KnownZero, KnownOne, TLO)) in PerformBTCombine()