Searched refs:TrueVal (Results 1 - 21 of 21) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp208 Instruction *InstCombiner::FoldSelectIntoOp(SelectInst &SI, Value *TrueVal, argument
212 if (Instruction *TVI = dyn_cast<Instruction>(TrueVal)) {
249 !isa<Constant>(TrueVal)) {
252 if ((SFO & 1) && TrueVal == FVI->getOperand(0)) {
254 } else if ((SFO & 2) && TrueVal == FVI->getOperand(1)) {
268 TrueVal, NewSel);
298 static Value *foldSelectICmpAndOr(const SelectInst &SI, Value *TrueVal, argument
318 bool OrOnFalseVal = match(FalseVal, m_Or(m_Specific(TrueVal), m_Power2(C2)));
320 OrOnTrueVal = match(TrueVal, m_Or(m_Specific(FalseVal), m_Power2(C2)));
326 Value *Y = OrOnFalseVal ? TrueVal
359 foldSelectCttzCtlz(ICmpInst *ICI, Value *TrueVal, Value *FalseVal, InstCombiner::BuilderTy *Builder) argument
410 Value *TrueVal = SI.getTrueValue(); local
755 foldSelectICmpAnd(const SelectInst &SI, ConstantInt *TrueVal, ConstantInt *FalseVal, InstCombiner::BuilderTy *Builder) argument
828 Value *TrueVal = SI.getTrueValue(); local
[all...]
H A DInstCombineVectorOps.cpp250 Value *TrueVal = SI->getTrueValue(); local
261 = Builder->CreateExtractElement(TrueVal,
263 TrueVal->getName() + ".elt");
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp3316 static Value *SimplifySelectInst(Value *CondVal, Value *TrueVal, argument
3323 return TrueVal;
3329 if (TrueVal == FalseVal)
3330 return TrueVal;
3333 if (isa<Constant>(TrueVal))
3334 return TrueVal;
3337 if (isa<UndefValue>(TrueVal)) // select C, undef, X -> X
3340 return TrueVal;
3343 unsigned BitWidth = Q.DL.getTypeSizeInBits(TrueVal->getType());
3372 if (FalseVal == X && match(TrueVal, m_An
3443 SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, const DataLayout &DL, const TargetLibraryInfo *TLI, const DominatorTree *DT, AssumptionCache *AC, const Instruction *CxtI) argument
[all...]
H A DValueTracking.cpp3860 Value *TrueVal, Value *FalseVal,
3922 if (TrueVal == CmpRHS && FalseVal == CmpLHS) {
3933 if (TrueVal == CmpLHS && FalseVal == CmpRHS) {
3956 if ((CmpLHS == TrueVal && match(FalseVal, m_Neg(m_Specific(CmpLHS)))) ||
3957 (CmpLHS == FalseVal && match(TrueVal, m_Neg(m_Specific(CmpLHS))))) {
3962 return {(CmpLHS == TrueVal) ? SPF_ABS : SPF_NABS, SPNB_NA, false};
3975 (match(TrueVal, m_Not(m_Specific(CmpLHS))) ||
3976 match(CmpLHS, m_Not(m_Specific(TrueVal))))) {
3977 LHS = TrueVal;
4056 Value *TrueVal local
3857 matchSelectPattern(CmpInst::Predicate Pred, FastMathFlags FMF, Value *CmpLHS, Value *CmpRHS, Value *TrueVal, Value *FalseVal, Value *&LHS, Value *&RHS) argument
[all...]
H A DCFLAliasAnalysis.cpp221 auto *TrueVal = Inst.getTrueValue(); local
222 Output.push_back(Edge(&Inst, TrueVal, EdgeType::Assign, AttrNone));
H A DScalarEvolution.cpp3989 Value *TrueVal,
3994 return getSCEV(CI->isOne() ? TrueVal : FalseVal);
4016 const SCEV *LA = getSCEV(TrueVal);
4039 const SCEV *LA = getSCEV(TrueVal);
4057 const SCEV *LA = getSCEV(TrueVal);
4071 const SCEV *LA = getSCEV(TrueVal);
/external/llvm/include/llvm/Analysis/
H A DInstructionSimplify.h223 Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal,
H A DScalarEvolution.h572 /// being processed, and it is assumed equivalent to "Cond ? TrueVal :
575 Value *TrueVal, Value *FalseVal);
/external/llvm/include/llvm/IR/
H A DPatternMatch.h967 Value *TrueVal = SI->getTrueValue();
971 if ((TrueVal != LHS || FalseVal != RHS) &&
972 (TrueVal != RHS || FalseVal != LHS))
975 LHS == TrueVal ? Cmp->getPredicate() : Cmp->getSwappedPredicate();
/external/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp628 Constant *TrueVal = getKnownConstant(SI->getTrueValue(), Preference); local
631 if ((TrueVal || FalseVal) &&
647 KnownCond = (TrueVal != nullptr);
651 if (Constant *Val = KnownCond ? TrueVal : FalseVal)
H A DGVN.cpp2346 Value *TrueVal = ConstantInt::getTrue(TrueSucc->getContext()); local
2348 Changed |= propagateEquality(BranchCond, TrueVal, TrueE, true);
/external/llvm/lib/IR/
H A DConstantFold.cpp767 if (ConstantExpr *TrueVal = dyn_cast<ConstantExpr>(V1)) {
768 if (TrueVal->getOpcode() == Instruction::Select)
769 if (TrueVal->getOperand(0) == Cond)
770 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2);
/external/llvm/lib/Target/ARM/
H A DARMISelLowering.h637 SDValue getCMOV(SDLoc dl, EVT VT, SDValue FalseVal, SDValue TrueVal,
H A DARMISelLowering.cpp3569 SDValue TrueVal, SDValue ARMcc, SDValue CCR,
3574 TrueVal = DAG.getNode(ARMISD::VMOVRRD, dl,
3575 DAG.getVTList(MVT::i32, MVT::i32), TrueVal);
3577 SDValue TrueLow = TrueVal.getValue(0);
3578 SDValue TrueHigh = TrueVal.getValue(1);
3589 return DAG.getNode(ARMISD::CMOV, dl, VT, FalseVal, TrueVal, ARMcc, CCR,
3599 SDValue TrueVal = Op.getOperand(2); local
3626 if (Subtarget->hasFPARMv8() && (TrueVal.getValueType() == MVT::f32 ||
3627 TrueVal.getValueType() == MVT::f64)) {
3632 std::swap(TrueVal, FalseVa
3568 getCMOV(SDLoc dl, EVT VT, SDValue FalseVal, SDValue TrueVal, SDValue ARMcc, SDValue CCR, SDValue Cmp, SelectionDAG &DAG) const argument
4275 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt); local
10507 SDValue TrueVal = N->getOperand(1); local
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeFloatTypes.cpp2086 SDValue TrueVal = GetPromotedFloat(N->getOperand(1)); local
2089 return DAG.getNode(ISD::SELECT, SDLoc(N), TrueVal->getValueType(0),
2090 N->getOperand(0), TrueVal, FalseVal);
2096 SDValue TrueVal = GetPromotedFloat(N->getOperand(2)); local
2100 N->getOperand(0), N->getOperand(1), TrueVal, FalseVal,
/external/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp1928 Value *TrueVal = PN->getIncomingValue(PN->getIncomingBlock(0) == IfFalse); local
1932 cast<SelectInst>(Builder.CreateSelect(IfCond, TrueVal, FalseVal, ""));
2959 ConstantInt *TrueVal = dyn_cast<ConstantInt>(Select->getTrueValue()); local
2961 if (!TrueVal || !FalseVal)
2966 BasicBlock *TrueBB = SI->findCaseValue(TrueVal).getCaseSuccessor();
2976 TrueWeight = (uint32_t)Weights[SI->findCaseValue(TrueVal).
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4275 Value *TrueVal, *FalseVal, *Cond; local
4276 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) ||
4277 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) ||
4281 I = SelectInst::Create(Cond, TrueVal, FalseVal);
4290 Value *TrueVal, *FalseVal, *Cond; local
4291 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) ||
4292 popValue(Record, OpNum, NextValueNo, TrueVal->getType(), FalseVal) ||
4308 I = SelectInst::Create(Cond, TrueVal, FalseVal);
/external/llvm/lib/Target/NVPTX/
H A DNVPTXISelLowering.cpp1734 SDValue TrueVal = DAG.getNode(Opc, dl, VT, ShOpHi, ExtraShAmt);
1740 SDValue Lo = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal);
1796 SDValue TrueVal = DAG.getNode(ISD::SHL, dl, VT, ShOpLo, ExtraShAmt);
1802 SDValue Hi = DAG.getNode(ISD::SELECT, dl, VT, Cmp, TrueVal, FalseVal);
/external/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp2433 SDValue TrueVal = Op.getOperand(2); local
2459 return DAG.getNode(Opc, dl, TrueVal.getValueType(), TrueVal, FalseVal,
3058 // TrueVal = ...
/external/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp2386 int64_t TrueVal = TrueC->getSExtValue();
2388 if ((TrueVal == -1 && FalseVal == 0) || (TrueVal == 0 && FalseVal == -1)) {
2390 if (TrueVal == 0)
/external/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3949 const int64_t TrueVal = CTVal->getSExtValue(); local
3956 if (TrueVal == ~FalseVal) {
3958 } else if (TrueVal == -FalseVal) {
3977 } else if ((TrueVal == FalseVal + 1) || (TrueVal + 1 == FalseVal)) {
3980 if (TrueVal > FalseVal) {

Completed in 553 milliseconds